home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / share / 12 / setup.exe / _SETUP.1 / Flowerball.pop < prev    next >
Unknown  |  1999-11-30  |  75.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0f 64 65 66 61 75 6c 74 | 20 73 65 74 74 69 6e 67 |.default| setting|
|00000010| 7b 2e 01 00 70 6f 70 20 | 64 61 6e 63 65 72 73 20 |{...pop |dancers |
|00000020| 7b 0a 2f 2f 20 42 61 73 | 65 50 6f 70 20 61 74 74 |{.// Bas|ePop att|
|00000030| 72 69 62 75 74 65 73 0a | 2f 2f 20 44 61 6e 63 65 |ributes.|// Dance|
|00000040| 72 50 6f 70 20 61 74 74 | 72 69 62 75 74 65 73 0a |rPop att|ributes.|
|00000050| 70 61 72 65 6e 74 73 20 | 30 0a 6d 6f 64 65 6c 5f |parents |0.model_|
|00000060| 63 6f 6d 70 6c 65 78 69 | 74 79 20 30 0a 72 65 6e |complexi|ty 0.ren|
|00000070| 64 65 72 69 6e 67 20 30 | 0a 66 72 61 6d 65 73 20 |dering 0|.frames |
|00000080| 33 32 30 0a 6c 6f 6f 70 | 65 64 20 74 72 75 65 0a |320.loop|ed true.|
|00000090| 65 61 73 65 5f 74 77 65 | 65 6e 20 66 61 6c 73 65 |ease_twe|en false|
|000000a0| 0a 62 61 63 6b 67 72 6f | 75 6e 64 5f 6f 6e 20 74 |.backgro|und_on t|
|000000b0| 72 75 65 0a 62 61 63 6b | 67 72 6f 75 6e 64 20 3c |rue.back|ground <|
|000000c0| 5b 6e 6f 6e 65 5d 3e 0a | 74 65 78 74 75 72 65 73 |[none]>.|textures|
|000000d0| 5f 6f 6e 20 74 72 75 65 | 0a 74 65 78 74 75 72 65 |_on true|.texture|
|000000e0| 30 20 3c 5b 6e 6f 6e 65 | 5d 3e 0a 74 65 78 74 75 |0 <[none|]>.textu|
|000000f0| 72 65 31 20 3c 5b 6e 6f | 6e 65 5d 3e 0a 74 65 78 |re1 <[no|ne]>.tex|
|00000100| 74 75 72 65 32 20 3c 5b | 6e 6f 6e 65 5d 3e 0a 74 |ture2 <[|none]>.t|
|00000110| 65 78 74 75 72 65 33 20 | 3c 5b 6e 6f 6e 65 5d 3e |exture3 |<[none]>|
|00000120| 0a 74 65 78 74 75 72 65 | 34 20 3c 5b 6e 6f 6e 65 |.texture|4 <[none|
|00000130| 5d 3e 0a 74 65 78 74 75 | 72 65 35 20 3c 5b 6e 6f |]>.textu|re5 <[no|
|00000140| 6e 65 5d 3e 0a 74 65 78 | 74 75 72 65 36 20 3c 5b |ne]>.tex|ture6 <[|
|00000150| 6e 6f 6e 65 5d 3e 0a 74 | 65 78 74 75 72 65 37 20 |none]>.t|exture7 |
|00000160| 3c 5b 6e 6f 6e 65 5d 3e | 0a 74 65 78 74 75 72 65 |<[none]>|.texture|
|00000170| 38 20 3c 5b 6e 6f 6e 65 | 5d 3e 0a 74 65 78 74 75 |8 <[none|]>.textu|
|00000180| 72 65 39 20 3c 5b 6e 6f | 6e 65 5d 3e 0a 74 65 78 |re9 <[no|ne]>.tex|
|00000190| 74 75 72 65 31 30 20 3c | 5b 6e 6f 6e 65 5d 3e 0a |ture10 <|[none]>.|
|000001a0| 74 65 78 74 75 72 65 31 | 31 20 3c 5b 6e 6f 6e 65 |texture1|1 <[none|
|000001b0| 5d 3e 0a 74 65 78 74 75 | 72 65 31 32 20 3c 5b 6e |]>.textu|re12 <[n|
|000001c0| 6f 6e 65 5d 3e 0a 74 65 | 78 74 75 72 65 31 33 20 |one]>.te|xture13 |
|000001d0| 3c 5b 6e 6f 6e 65 5d 3e | 0a 74 65 78 74 75 72 65 |<[none]>|.texture|
|000001e0| 31 34 20 3c 5b 6e 6f 6e | 65 5d 3e 0a 74 65 78 74 |14 <[non|e]>.text|
|000001f0| 75 72 65 31 35 20 3c 5b | 6e 6f 6e 65 5d 3e 0a 65 |ure15 <[|none]>.e|
|00000200| 6e 64 20 2f 2f 20 44 61 | 6e 63 65 72 50 6f 70 20 |nd // Da|ncerPop |
|00000210| 61 74 74 72 69 62 75 74 | 65 73 0a 69 6e 64 69 20 |attribut|es.indi |
|00000220| 64 61 6e 63 65 72 20 7b | 0a 2f 2f 20 42 61 73 65 |dancer {|.// Base|
|00000230| 49 6e 64 69 20 61 74 74 | 72 69 62 75 74 65 73 0a |Indi att|ributes.|
|00000240| 2f 2f 20 44 61 6e 63 65 | 72 49 6e 64 69 41 74 74 |// Dance|rIndiAtt|
|00000250| 72 69 62 75 74 65 73 0a | 67 65 6e 6f 6d 65 20 64 |ributes.|genome d|
|00000260| 61 6e 63 65 72 20 7b 0a | 2f 2f 20 42 61 73 65 47 |ancer {.|// BaseG|
|00000270| 65 6e 6f 6d 65 20 61 74 | 74 72 69 62 75 74 65 73 |enome at|tributes|
|00000280| 0a 2f 2f 20 44 61 6e 63 | 65 72 47 65 6e 6f 6d 65 |.// Danc|erGenome|
|00000290| 20 61 74 74 72 69 62 75 | 74 65 73 0a 70 72 6f 67 | attribu|tes.prog|
|000002a0| 0a 66 75 6e 63 20 76 6f | 69 64 20 6d 61 69 6e 28 |.func vo|id main(|
|000002b0| 29 3b 0a 66 75 6e 63 20 | 76 6f 69 64 20 73 74 61 |);.func |void sta|
|000002c0| 6c 6b 28 29 3b 0a 66 75 | 6e 63 20 76 6f 69 64 20 |lk();.fu|nc void |
|000002d0| 70 65 74 61 6c 28 29 3b | 0a 66 75 6e 63 20 76 6f |petal();|.func vo|
|000002e0| 69 64 20 62 75 69 6c 64 | 43 53 70 61 63 65 41 28 |id build|CSpaceA(|
|000002f0| 20 69 6e 74 20 69 6e 64 | 65 78 20 29 3b 0a 66 75 | int ind|ex );.fu|
|00000300| 6e 63 20 76 6f 69 64 20 | 62 75 69 6c 64 43 53 70 |nc void |buildCSp|
|00000310| 61 63 65 42 28 20 69 6e | 74 20 69 6e 64 65 78 20 |aceB( in|t index |
|00000320| 29 3b 0a 66 75 6e 63 20 | 76 6f 69 64 20 62 75 69 |);.func |void bui|
|00000330| 6c 64 43 53 70 61 63 65 | 43 28 20 69 6e 74 20 69 |ldCSpace|C( int i|
|00000340| 6e 64 65 78 20 29 3b 0a | 66 75 6e 63 20 76 6f 69 |ndex );.|func voi|
|00000350| 64 20 62 75 69 6c 64 43 | 53 70 61 63 65 44 28 20 |d buildC|SpaceD( |
|00000360| 69 6e 74 20 69 6e 64 65 | 78 20 29 3b 0a 64 61 74 |int inde|x );.dat|
|00000370| 61 20 6e 75 6d 20 6f 70 | 65 6e 20 3d 20 5b 30 2e |a num op|en = [0.|
|00000380| 37 37 38 36 39 36 5d 3a | 5b 30 5d 3a 5b 31 5d 3b |778696]:|[0]:[1];|
|00000390| 20 0a 66 75 6e 63 20 76 | 6f 69 64 20 6d 61 69 6e | .func v|oid main|
|000003a0| 28 29 20 7b 0a 64 61 74 | 61 20 6e 75 6d 20 6d 61 |() {.dat|a num ma|
|000003b0| 74 65 72 69 61 6c 5f 73 | 68 69 6e 65 20 3d 20 5b |terial_s|hine = [|
|000003c0| 36 2e 35 32 30 34 36 5d | 3a 5b 30 5d 3a 5b 31 30 |6.52046]|:[0]:[10|
|000003d0| 5d 3b 20 0a 64 61 74 61 | 20 6e 75 6d 20 6d 61 74 |]; .data| num mat|
|000003e0| 65 72 69 61 6c 5f 73 68 | 61 72 70 20 3d 20 5b 32 |erial_sh|arp = [2|
|000003f0| 36 2e 38 37 37 39 5d 3a | 5b 30 5d 3a 5b 31 30 30 |6.8779]:|[0]:[100|
|00000400| 5d 3b 20 0a 73 65 74 5f | 73 68 69 6e 65 28 6d 61 |]; .set_|shine(ma|
|00000410| 74 65 72 69 61 6c 5f 73 | 68 69 6e 65 29 3b 0a 73 |terial_s|hine);.s|
|00000420| 65 74 5f 73 68 61 72 70 | 28 6d 61 74 65 72 69 61 |et_sharp|(materia|
|00000430| 6c 5f 73 68 61 72 70 29 | 3b 0a 62 75 69 6c 64 43 |l_sharp)|;.buildC|
|00000440| 53 70 61 63 65 41 28 5b | 30 5d 29 3b 0a 62 75 69 |SpaceA([|0]);.bui|
|00000450| 6c 64 43 53 70 61 63 65 | 42 28 5b 31 5d 29 3b 0a |ldCSpace|B([1]);.|
|00000460| 62 75 69 6c 64 43 53 70 | 61 63 65 43 28 5b 32 5d |buildCSp|aceC([2]|
|00000470| 29 3b 0a 62 75 69 6c 64 | 43 53 70 61 63 65 44 28 |);.build|CSpaceD(|
|00000480| 5b 33 5d 29 3b 0a 64 61 | 74 61 20 6e 75 6d 20 66 |[3]);.da|ta num f|
|00000490| 73 69 7a 65 20 3d 20 5b | 30 2e 39 5d 3b 20 0a 73 |size = [|0.9]; .s|
|000004a0| 74 61 6c 6b 28 29 3b 0a | 64 61 74 61 20 6e 75 6d |talk();.|data num|
|000004b0| 20 70 65 74 61 6c 5f 66 | 77 64 20 3d 20 5b 33 2e | petal_f|wd = [3.|
|000004c0| 38 33 32 36 38 5d 3a 5b | 2d 32 30 5d 3a 5b 32 30 |83268]:[|-20]:[20|
|000004d0| 5d 3b 20 0a 66 6f 72 77 | 61 72 64 28 28 70 65 74 |]; .forw|ard((pet|
|000004e0| 61 6c 5f 66 77 64 2a 6f | 70 65 6e 29 29 3b 0a 70 |al_fwd*o|pen));.p|
|000004f0| 69 74 63 68 28 28 5b 33 | 2e 31 34 31 35 39 5d 2f |itch(([3|.14159]/|
|00000500| 5b 32 5d 29 29 3b 0a 70 | 65 74 61 6c 28 29 3b 0a |[2]));.p|etal();.|
|00000510| 79 61 77 28 28 28 5b 32 | 5d 2a 5b 33 2e 31 34 31 |yaw((([2|]*[3.141|
|00000520| 35 39 5d 29 2f 5b 35 5d | 29 29 3b 0a 70 65 74 61 |59])/[5]|));.peta|
|00000530| 6c 28 29 3b 0a 79 61 77 | 28 28 28 5b 32 5d 2a 5b |l();.yaw|((([2]*[|
|00000540| 33 2e 31 34 31 35 39 5d | 29 2f 5b 35 5d 29 29 3b |3.14159]|)/[5]));|
|00000550| 0a 70 65 74 61 6c 28 29 | 3b 0a 79 61 77 28 28 28 |.petal()|;.yaw(((|
|00000560| 5b 32 5d 2a 5b 33 2e 31 | 34 31 35 39 5d 29 2f 5b |[2]*[3.1|4159])/[|
|00000570| 35 5d 29 29 3b 0a 70 65 | 74 61 6c 28 29 3b 0a 79 |5]));.pe|tal();.y|
|00000580| 61 77 28 28 28 5b 32 5d | 2a 5b 33 2e 31 34 31 35 |aw((([2]|*[3.1415|
|00000590| 39 5d 29 2f 5b 35 5d 29 | 29 3b 0a 70 65 74 61 6c |9])/[5])|);.petal|
|000005a0| 28 29 3b 0a 7d 0a 66 75 | 6e 63 20 76 6f 69 64 20 |();.}.fu|nc void |
|000005b0| 73 74 61 6c 6b 28 29 20 | 7b 0a 64 61 74 61 20 6e |stalk() |{.data n|
|000005c0| 75 6d 20 73 70 68 65 72 | 65 6e 65 73 73 20 3d 20 |um spher|eness = |
|000005d0| 6f 70 65 6e 3b 20 0a 64 | 61 74 61 20 6e 75 6d 20 |open; .d|ata num |
|000005e0| 73 68 65 65 74 6e 65 73 | 73 20 3d 20 28 5b 31 5d |sheetnes|s = ([1]|
|000005f0| 2d 73 70 68 65 72 65 6e | 65 73 73 29 3b 20 0a 64 |-spheren|ess); .d|
|00000600| 61 74 61 20 69 6e 74 20 | 6d 61 78 72 69 6e 67 73 |ata int |maxrings|
|00000610| 20 3d 20 5b 38 5d 3b 20 | 0a 64 61 74 61 20 6e 75 | = [8]; |.data nu|
|00000620| 6d 20 61 6c 70 68 61 20 | 3d 20 5b 30 5d 3b 20 0a |m alpha |= [0]; .|
|00000630| 64 61 74 61 20 6e 75 6d | 20 64 65 6c 74 61 61 6c |data num| deltaal|
|00000640| 70 68 61 20 3d 20 28 5b | 33 2e 31 34 31 35 39 5d |pha = ([|3.14159]|
|00000650| 2f 69 74 6f 6e 28 6d 61 | 78 72 69 6e 67 73 29 29 |/iton(ma|xrings))|
|00000660| 3b 20 0a 73 65 74 5f 74 | 65 78 74 75 72 65 28 5b |; .set_t|exture([|
|00000670| 30 5d 29 3b 0a 64 61 74 | 61 20 6e 75 6d 20 73 70 |0]);.dat|a num sp|
|00000680| 68 65 72 65 5f 65 78 70 | 61 6e 64 65 64 20 3d 20 |here_exp|anded = |
|00000690| 5b 2d 32 2e 38 39 32 37 | 32 5d 3a 5b 2d 31 30 5d |[-2.8927|2]:[-10]|
|000006a0| 3a 5b 31 35 5d 3b 20 0a | 69 66 28 6c 65 73 73 28 |:[15]; .|if(less(|
|000006b0| 73 70 68 65 72 65 5f 65 | 78 70 61 6e 64 65 64 2c |sphere_e|xpanded,|
|000006c0| 5b 31 5d 29 29 20 7b 0a | 73 70 68 65 72 65 5f 65 |[1])) {.|sphere_e|
|000006d0| 78 70 61 6e 64 65 64 20 | 3d 20 5b 31 5d 3b 0a 7d |xpanded |= [1];.}|
|000006e0| 20 0a 66 6f 72 28 20 69 | 6e 74 20 72 69 6e 67 20 | .for( i|nt ring |
|000006f0| 3d 20 5b 30 5d 3b 20 69 | 6c 65 73 73 28 72 69 6e |= [0]; i|less(rin|
|00000700| 67 2c 6d 61 78 72 69 6e | 67 73 29 3b 20 28 72 69 |g,maxrin|gs); (ri|
|00000710| 6e 67 2b 5b 31 5d 29 20 | 29 20 7b 0a 64 61 74 61 |ng+[1]) |) {.data|
|00000720| 20 6e 75 6d 20 6c 6f 63 | 75 73 20 3d 20 28 69 74 | num loc|us = (it|
|00000730| 6f 6e 28 72 69 6e 67 29 | 2f 69 74 6f 6e 28 6d 61 |on(ring)|/iton(ma|
|00000740| 78 72 69 6e 67 73 29 29 | 3b 20 0a 73 65 74 5f 63 |xrings))|; .set_c|
|00000750| 6f 6c 6f 75 72 28 63 73 | 70 61 63 65 28 5b 32 5d |olour(cs|pace([2]|
|00000760| 2c 6c 6f 63 75 73 29 29 | 3b 0a 64 61 74 61 20 6e |,locus))|;.data n|
|00000770| 75 6d 20 73 70 68 65 72 | 65 7a 20 3d 20 28 63 6f |um spher|ez = (co|
|00000780| 73 28 61 6c 70 68 61 29 | 2a 73 70 68 65 72 65 5f |s(alpha)|*sphere_|
|00000790| 65 78 70 61 6e 64 65 64 | 29 3b 20 0a 64 61 74 61 |expanded|); .data|
|000007a0| 20 6e 75 6d 20 73 70 68 | 65 72 65 72 61 64 69 75 | num sph|ereradiu|
|000007b0| 73 20 3d 20 28 73 69 6e | 28 61 6c 70 68 61 29 2a |s = (sin|(alpha)*|
|000007c0| 73 70 68 65 72 65 5f 65 | 78 70 61 6e 64 65 64 29 |sphere_e|xpanded)|
|000007d0| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 63 69 72 63 |; .data |num circ|
|000007e0| 75 6d 20 3d 20 28 28 5b | 32 5d 2a 5b 33 2e 31 34 |um = (([|2]*[3.14|
|000007f0| 31 35 39 5d 29 2a 69 74 | 6f 6e 28 72 69 6e 67 29 |159])*it|on(ring)|
|00000800| 29 3b 20 0a 64 61 74 61 | 20 69 6e 74 20 73 65 67 |); .data| int seg|
|00000810| 73 20 3d 20 6e 74 6f 69 | 28 63 69 72 63 75 6d 29 |s = ntoi|(circum)|
|00000820| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 64 65 6c 74 |; .data |num delt|
|00000830| 61 74 68 65 74 61 20 3d | 20 28 28 5b 32 5d 2a 5b |atheta =| (([2]*[|
|00000840| 33 2e 31 34 31 35 39 5d | 29 2f 63 69 72 63 75 6d |3.14159]|)/circum|
|00000850| 29 3b 20 0a 64 61 74 61 | 20 6e 75 6d 20 74 68 65 |); .data| num the|
|00000860| 74 61 20 3d 20 5b 30 5d | 3b 20 0a 66 6f 72 28 20 |ta = [0]|; .for( |
|00000870| 69 6e 74 20 73 65 67 20 | 3d 20 5b 30 5d 3b 20 69 |int seg |= [0]; i|
|00000880| 6c 65 73 73 28 73 65 67 | 2c 73 65 67 73 29 3b 20 |less(seg|,segs); |
|00000890| 28 73 65 67 2b 5b 31 5d | 29 20 29 20 7b 0a 64 61 |(seg+[1]|) ) {.da|
|000008a0| 74 61 20 6e 75 6d 20 6e | 6f 72 6d 78 20 3d 20 63 |ta num n|ormx = c|
|000008b0| 6f 73 28 74 68 65 74 61 | 29 3b 20 0a 64 61 74 61 |os(theta|); .data|
|000008c0| 20 6e 75 6d 20 6e 6f 72 | 6d 79 20 3d 20 73 69 6e | num nor|my = sin|
|000008d0| 28 74 68 65 74 61 29 3b | 20 0a 64 61 74 61 20 6e |(theta);| .data n|
|000008e0| 75 6d 20 73 68 65 65 74 | 72 61 64 69 75 73 20 3d |um sheet|radius =|
|000008f0| 20 69 74 6f 6e 28 72 69 | 6e 67 29 3b 20 0a 64 61 | iton(ri|ng); .da|
|00000900| 74 61 20 6e 75 6d 20 74 | 6f 74 61 6c 72 61 64 69 |ta num t|otalradi|
|00000910| 75 73 20 3d 20 28 28 73 | 68 65 65 74 6e 65 73 73 |us = ((s|heetness|
|00000920| 2a 73 68 65 65 74 72 61 | 64 69 75 73 29 2b 28 73 |*sheetra|dius)+(s|
|00000930| 70 68 65 72 65 6e 65 73 | 73 2a 73 70 68 65 72 65 |pherenes|s*sphere|
|00000940| 72 61 64 69 75 73 29 29 | 3b 20 0a 64 61 74 61 20 |radius))|; .data |
|00000950| 6e 75 6d 20 78 20 3d 20 | 28 74 6f 74 61 6c 72 61 |num x = |(totalra|
|00000960| 64 69 75 73 2a 6e 6f 72 | 6d 78 29 3b 20 0a 64 61 |dius*nor|mx); .da|
|00000970| 74 61 20 6e 75 6d 20 79 | 20 3d 20 28 74 6f 74 61 |ta num y| = (tota|
|00000980| 6c 72 61 64 69 75 73 2a | 6e 6f 72 6d 79 29 3b 20 |lradius*|normy); |
|00000990| 0a 64 61 74 61 20 6e 75 | 6d 20 7a 20 3d 20 28 73 |.data nu|m z = (s|
|000009a0| 70 68 65 72 65 6e 65 73 | 73 2a 73 70 68 65 72 65 |pherenes|s*sphere|
|000009b0| 7a 29 3b 20 0a 70 75 73 | 68 28 29 3b 0a 64 61 74 |z); .pus|h();.dat|
|000009c0| 61 20 6e 75 6d 20 73 70 | 68 65 72 65 73 69 7a 65 |a num sp|heresize|
|000009d0| 20 3d 20 5b 30 2e 35 36 | 37 37 31 33 5d 3a 5b 30 | = [0.56|7713]:[0|
|000009e0| 2e 31 5d 3a 5b 31 5d 3b | 20 0a 65 67 67 5f 75 73 |.1]:[1];| .egg_us|
|000009f0| 63 61 6c 65 28 73 70 68 | 65 72 65 73 69 7a 65 29 |cale(sph|eresize)|
|00000a00| 3b 0a 6d 6f 76 65 28 76 | 33 6d 61 6b 65 28 78 2c |;.move(v|3make(x,|
|00000a10| 79 2c 7a 29 29 3b 0a 73 | 65 74 5f 70 72 69 6d 28 |y,z));.s|et_prim(|
|00000a20| 5b 33 5d 29 3b 0a 6c 61 | 79 28 29 3b 0a 70 6f 70 |[3]);.la|y();.pop|
|00000a30| 28 29 3b 0a 74 68 65 74 | 61 20 3d 20 28 74 68 65 |();.thet|a = (the|
|00000a40| 74 61 2b 64 65 6c 74 61 | 74 68 65 74 61 29 3b 0a |ta+delta|theta);.|
|00000a50| 7d 20 0a 61 6c 70 68 61 | 20 3d 20 28 61 6c 70 68 |} .alpha| = (alph|
|00000a60| 61 2b 64 65 6c 74 61 61 | 6c 70 68 61 29 3b 0a 7d |a+deltaa|lpha);.}|
|00000a70| 20 0a 7d 0a 66 75 6e 63 | 20 76 6f 69 64 20 70 65 | .}.func| void pe|
|00000a80| 74 61 6c 28 29 20 7b 0a | 70 75 73 68 28 29 3b 0a |tal() {.|push();.|
|00000a90| 66 6f 72 77 61 72 64 28 | 5b 32 2e 35 5d 29 3b 0a |forward(|[2.5]);.|
|00000aa0| 70 69 74 63 68 28 28 2d | 5b 33 2e 31 34 31 35 39 |pitch((-|[3.14159|
|00000ab0| 5d 2f 5b 35 5d 29 29 3b | 0a 79 61 77 28 28 2d 5b |]/[5]));|.yaw((-[|
|00000ac0| 33 2e 31 34 31 35 39 5d | 2f 5b 34 5d 29 29 3b 0a |3.14159]|/[4]));.|
|00000ad0| 72 6f 6c 6c 28 28 2d 5b | 33 2e 31 34 31 35 39 5d |roll((-[|3.14159]|
|00000ae0| 2f 5b 36 5d 29 29 3b 0a | 73 65 74 5f 70 72 69 6d |/[6]));.|set_prim|
|00000af0| 28 5b 33 5d 29 3b 0a 64 | 61 74 61 20 69 6e 74 20 |([3]);.d|ata int |
|00000b00| 73 65 67 73 20 3d 20 5b | 33 30 5d 3b 20 0a 73 65 |segs = [|30]; .se|
|00000b10| 74 5f 74 65 78 74 75 72 | 65 28 5b 31 5d 29 3b 0a |t_textur|e([1]);.|
|00000b20| 66 6f 72 28 20 69 6e 74 | 20 69 20 3d 20 5b 31 5d |for( int| i = [1]|
|00000b30| 3b 20 69 6c 65 73 73 28 | 69 2c 73 65 67 73 29 3b |; iless(|i,segs);|
|00000b40| 20 28 69 2b 5b 31 5d 29 | 20 29 20 7b 0a 64 61 74 | (i+[1])| ) {.dat|
|00000b50| 61 20 6e 75 6d 20 61 6d | 70 6c 69 74 75 64 65 20 |a num am|plitude |
|00000b60| 3d 20 73 69 6e 28 28 28 | 5b 33 2e 31 34 31 35 39 |= sin(((|[3.14159|
|00000b70| 5d 2a 69 74 6f 6e 28 69 | 29 29 2f 69 74 6f 6e 28 |]*iton(i|))/iton(|
|00000b80| 73 65 67 73 29 29 29 3b | 20 0a 73 65 74 5f 63 6f |segs)));| .set_co|
|00000b90| 6c 6f 75 72 28 63 73 70 | 61 63 65 28 5b 31 5d 2c |lour(csp|ace([1],|
|00000ba0| 61 6d 70 6c 69 74 75 64 | 65 29 29 3b 0a 79 61 77 |amplitud|e));.yaw|
|00000bb0| 28 28 5b 33 2e 31 34 31 | 35 39 5d 2f 69 74 6f 6e |(([3.141|59]/iton|
|00000bc0| 28 73 65 67 73 29 29 29 | 3b 0a 70 75 73 68 28 29 |(segs)))|;.push()|
|00000bd0| 3b 0a 66 6f 72 77 61 72 | 64 28 5b 30 2e 31 5d 29 |;.forwar|d([0.1])|
|00000be0| 3b 0a 64 61 74 61 20 6e | 75 6d 20 66 6c 65 78 20 |;.data n|um flex |
|00000bf0| 3d 20 5b 2d 32 2e 32 39 | 32 32 35 5d 3a 5b 2d 32 |= [-2.29|225]:[-2|
|00000c00| 2e 35 5d 3a 5b 32 2e 35 | 5d 3b 20 0a 65 67 67 5f |.5]:[2.5|]; .egg_|
|00000c10| 73 63 61 6c 65 28 76 33 | 6d 61 6b 65 28 6f 70 65 |scale(v3|make(ope|
|00000c20| 6e 2c 6f 70 65 6e 2c 28 | 28 6f 70 65 6e 2a 5b 36 |n,open,(|(open*[6|
|00000c30| 5d 29 2a 28 61 6d 70 6c | 69 74 75 64 65 2b 5b 31 |])*(ampl|itude+[1|
|00000c40| 5d 29 29 29 29 3b 0a 70 | 69 74 63 68 28 28 28 28 |]))));.p|itch((((|
|00000c50| 5b 33 2e 31 34 31 35 39 | 5d 2f 5b 32 5d 29 2a 61 |[3.14159|]/[2])*a|
|00000c60| 6d 70 6c 69 74 75 64 65 | 29 2a 66 6c 65 78 29 29 |mplitude|)*flex))|
|00000c70| 3b 0a 6c 61 79 28 29 3b | 0a 70 6f 70 28 29 3b 0a |;.lay();|.pop();.|
|00000c80| 79 61 77 28 28 5b 33 2e | 31 34 31 35 39 5d 2f 5b |yaw(([3.|14159]/[|
|00000c90| 32 5d 29 29 3b 0a 66 6f | 72 77 61 72 64 28 28 5b |2]));.fo|rward(([|
|00000ca0| 30 2e 34 5d 2a 6f 70 65 | 6e 29 29 3b 0a 79 61 77 |0.4]*ope|n));.yaw|
|00000cb0| 28 28 2d 5b 33 2e 31 34 | 31 35 39 5d 2f 5b 32 5d |((-[3.14|159]/[2]|
|00000cc0| 29 29 3b 0a 7d 20 0a 70 | 6f 70 28 29 3b 0a 7d 0a |));.} .p|op();.}.|
|00000cd0| 66 75 6e 63 20 76 6f 69 | 64 20 62 75 69 6c 64 43 |func voi|d buildC|
|00000ce0| 53 70 61 63 65 41 28 20 | 69 6e 74 20 69 6e 64 65 |SpaceA( |int inde|
|00000cf0| 78 20 29 20 7b 0a 64 61 | 74 61 20 63 6f 6c 6f 75 |x ) {.da|ta colou|
|00000d00| 72 20 63 30 20 3d 20 5b | 3c 30 2e 35 30 37 37 34 |r c0 = [|<0.50774|
|00000d10| 2c 30 2e 34 33 31 33 32 | 39 2c 30 2e 35 34 31 31 |,0.43132|9,0.5411|
|00000d20| 31 35 2c 30 3e 5d 3a 5b | 3c 30 2c 30 2e 34 2c 30 |15,0>]:[|<0,0.4,0|
|00000d30| 2c 30 3e 5d 3a 5b 3c 31 | 2c 31 2c 31 2c 30 3e 5d |,0>]:[<1|,1,1,0>]|
|00000d40| 3b 20 0a 64 61 74 61 20 | 63 6f 6c 6f 75 72 20 63 |; .data |colour c|
|00000d50| 31 20 3d 20 5b 3c 30 2e | 38 34 37 38 33 35 2c 30 |1 = [<0.|847835,0|
|00000d60| 2e 35 33 32 35 36 2c 30 | 2e 34 36 33 30 39 39 2c |.53256,0|.463099,|
|00000d70| 30 3e 5d 3a 5b 3c 30 2c | 30 2e 34 2c 30 2c 30 3e |0>]:[<0,|0.4,0,0>|
|00000d80| 5d 3a 5b 3c 31 2c 31 2c | 31 2c 30 3e 5d 3b 20 0a |]:[<1,1,|1,0>]; .|
|00000d90| 64 61 74 61 20 63 6f 6c | 6f 75 72 20 63 32 20 3d |data col|our c2 =|
|00000da0| 20 5b 3c 30 2e 38 31 33 | 30 38 31 2c 30 2e 35 34 | [<0.813|081,0.54|
|00000db0| 33 33 30 34 2c 30 2e 32 | 33 33 38 32 36 2c 30 3e |3304,0.2|33826,0>|
|00000dc0| 5d 3a 5b 3c 30 2c 30 2e | 34 2c 30 2c 30 3e 5d 3a |]:[<0,0.|4,0,0>]:|
|00000dd0| 5b 3c 31 2c 31 2c 31 2c | 30 3e 5d 3b 20 0a 64 61 |[<1,1,1,|0>]; .da|
|00000de0| 74 61 20 63 6f 6c 6f 75 | 72 20 63 33 20 3d 20 5b |ta colou|r c3 = [|
|00000df0| 3c 30 2e 35 32 38 32 31 | 37 2c 30 2e 35 38 32 36 |<0.52821|7,0.5826|
|00000e00| 37 35 2c 30 2e 31 37 34 | 37 33 37 2c 30 3e 5d 3a |75,0.174|737,0>]:|
|00000e10| 5b 3c 30 2c 30 2e 34 2c | 30 2c 30 3e 5d 3a 5b 3c |[<0,0.4,|0,0>]:[<|
|00000e20| 31 2c 31 2c 31 2c 30 3e | 5d 3b 20 0a 64 61 74 61 |1,1,1,0>|]; .data|
|00000e30| 20 6e 75 6d 20 64 65 6c | 74 61 31 20 3d 20 5b 30 | num del|ta1 = [0|
|00000e40| 2e 38 35 32 37 33 34 5d | 3a 5b 30 2e 30 31 5d 3a |.852734]|:[0.01]:|
|00000e50| 5b 31 5d 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 64 |[1]; .da|ta num d|
|00000e60| 65 6c 74 61 32 20 3d 20 | 5b 30 2e 38 30 33 30 33 |elta2 = |[0.80303|
|00000e70| 38 5d 3a 5b 30 2e 30 31 | 5d 3a 5b 31 5d 3b 20 0a |8]:[0.01|]:[1]; .|
|00000e80| 64 61 74 61 20 6e 75 6d | 20 64 65 6c 74 61 33 20 |data num| delta3 |
|00000e90| 3d 20 5b 30 2e 35 36 37 | 35 36 39 5d 3a 5b 30 2e |= [0.567|569]:[0.|
|00000ea0| 30 31 5d 3a 5b 31 5d 3b | 20 0a 69 6e 69 74 5f 63 |01]:[1];| .init_c|
|00000eb0| 73 70 61 63 65 28 69 6e | 64 65 78 2c 63 30 29 3b |space(in|dex,c0);|
|00000ec0| 0a 65 78 74 65 6e 64 5f | 63 73 70 61 63 65 28 69 |.extend_|cspace(i|
|00000ed0| 6e 64 65 78 2c 64 65 6c | 74 61 31 2c 63 31 29 3b |ndex,del|ta1,c1);|
|00000ee0| 0a 65 78 74 65 6e 64 5f | 63 73 70 61 63 65 28 69 |.extend_|cspace(i|
|00000ef0| 6e 64 65 78 2c 64 65 6c | 74 61 32 2c 63 32 29 3b |ndex,del|ta2,c2);|
|00000f00| 0a 65 78 74 65 6e 64 5f | 63 73 70 61 63 65 28 69 |.extend_|cspace(i|
|00000f10| 6e 64 65 78 2c 64 65 6c | 74 61 33 2c 63 33 29 3b |ndex,del|ta3,c3);|
|00000f20| 0a 7d 0a 66 75 6e 63 20 | 76 6f 69 64 20 62 75 69 |.}.func |void bui|
|00000f30| 6c 64 43 53 70 61 63 65 | 42 28 20 69 6e 74 20 69 |ldCSpace|B( int i|
|00000f40| 6e 64 65 78 20 29 20 7b | 0a 64 61 74 61 20 63 6f |ndex ) {|.data co|
|00000f50| 6c 6f 75 72 20 63 30 20 | 3d 20 5b 3c 30 2e 30 31 |lour c0 |= [<0.01|
|00000f60| 31 38 38 30 34 2c 30 2e | 38 35 36 31 36 39 2c 30 |18804,0.|856169,0|
|00000f70| 2e 30 32 32 34 30 39 35 | 2c 30 3e 5d 3a 5b 3c 30 |.0224095|,0>]:[<0|
|00000f80| 2c 30 2e 34 2c 30 2c 30 | 3e 5d 3a 5b 3c 31 2c 31 |,0.4,0,0|>]:[<1,1|
|00000f90| 2c 31 2c 30 3e 5d 3b 20 | 0a 64 61 74 61 20 63 6f |,1,0>]; |.data co|
|00000fa0| 6c 6f 75 72 20 63 31 20 | 3d 20 5b 3c 30 2e 30 33 |lour c1 |= [<0.03|
|00000fb0| 31 39 35 38 39 2c 30 2e | 39 35 30 37 36 31 2c 30 |19589,0.|950761,0|
|00000fc0| 2e 37 38 36 34 35 38 2c | 30 3e 5d 3a 5b 3c 30 2c |.786458,|0>]:[<0,|
|00000fd0| 30 2e 34 2c 30 2c 30 3e | 5d 3a 5b 3c 31 2c 31 2c |0.4,0,0>|]:[<1,1,|
|00000fe0| 31 2c 30 3e 5d 3b 20 0a | 64 61 74 61 20 63 6f 6c |1,0>]; .|data col|
|00000ff0| 6f 75 72 20 63 32 20 3d | 20 5b 3c 30 2e 36 34 38 |our c2 =| [<0.648|
|00001000| 37 36 35 2c 30 2e 35 31 | 32 33 30 38 2c 30 2e 34 |765,0.51|2308,0.4|
|00001010| 30 37 33 33 36 2c 30 3e | 5d 3a 5b 3c 30 2c 30 2e |07336,0>|]:[<0,0.|
|00001020| 34 2c 30 2c 30 3e 5d 3a | 5b 3c 31 2c 31 2c 31 2c |4,0,0>]:|[<1,1,1,|
|00001030| 30 3e 5d 3b 20 0a 64 61 | 74 61 20 63 6f 6c 6f 75 |0>]; .da|ta colou|
|00001040| 72 20 63 33 20 3d 20 5b | 3c 30 2e 36 38 38 35 33 |r c3 = [|<0.68853|
|00001050| 32 2c 30 2e 37 36 31 37 | 30 36 2c 30 2e 30 39 31 |2,0.7617|06,0.091|
|00001060| 39 31 36 2c 30 3e 5d 3a | 5b 3c 30 2c 30 2e 34 2c |916,0>]:|[<0,0.4,|
|00001070| 30 2c 30 3e 5d 3a 5b 3c | 31 2c 31 2c 31 2c 30 3e |0,0>]:[<|1,1,1,0>|
|00001080| 5d 3b 20 0a 64 61 74 61 | 20 6e 75 6d 20 64 65 6c |]; .data| num del|
|00001090| 74 61 31 20 3d 20 5b 30 | 2e 34 30 33 35 30 32 5d |ta1 = [0|.403502]|
|000010a0| 3a 5b 30 2e 30 31 5d 3a | 5b 31 5d 3b 20 0a 64 61 |:[0.01]:|[1]; .da|
|000010b0| 74 61 20 6e 75 6d 20 64 | 65 6c 74 61 32 20 3d 20 |ta num d|elta2 = |
|000010c0| 5b 30 2e 36 35 35 34 30 | 32 5d 3a 5b 30 2e 30 31 |[0.65540|2]:[0.01|
|000010d0| 5d 3a 5b 31 5d 3b 20 0a | 64 61 74 61 20 6e 75 6d |]:[1]; .|data num|
|000010e0| 20 64 65 6c 74 61 33 20 | 3d 20 5b 30 2e 33 34 37 | delta3 |= [0.347|
|000010f0| 31 30 38 5d 3a 5b 30 2e | 30 31 5d 3a 5b 31 5d 3b |108]:[0.|01]:[1];|
|00001100| 20 0a 69 6e 69 74 5f 63 | 73 70 61 63 65 28 69 6e | .init_c|space(in|
|00001110| 64 65 78 2c 63 30 29 3b | 0a 65 78 74 65 6e 64 5f |dex,c0);|.extend_|
|00001120| 63 73 70 61 63 65 28 69 | 6e 64 65 78 2c 64 65 6c |cspace(i|ndex,del|
|00001130| 74 61 31 2c 63 31 29 3b | 0a 65 78 74 65 6e 64 5f |ta1,c1);|.extend_|
|00001140| 63 73 70 61 63 65 28 69 | 6e 64 65 78 2c 64 65 6c |cspace(i|ndex,del|
|00001150| 74 61 32 2c 63 32 29 3b | 0a 65 78 74 65 6e 64 5f |ta2,c2);|.extend_|
|00001160| 63 73 70 61 63 65 28 69 | 6e 64 65 78 2c 64 65 6c |cspace(i|ndex,del|
|00001170| 74 61 33 2c 63 33 29 3b | 0a 7d 0a 66 75 6e 63 20 |ta3,c3);|.}.func |
|00001180| 76 6f 69 64 20 62 75 69 | 6c 64 43 53 70 61 63 65 |void bui|ldCSpace|
|00001190| 43 28 20 69 6e 74 20 69 | 6e 64 65 78 20 29 20 7b |C( int i|ndex ) {|
|000011a0| 0a 64 61 74 61 20 63 6f | 6c 6f 75 72 20 63 30 20 |.data co|lour c0 |
|000011b0| 3d 20 5b 3c 30 2e 34 39 | 37 34 32 31 2c 30 2e 37 |= [<0.49|7421,0.7|
|000011c0| 33 37 39 38 34 2c 30 2e | 39 36 35 32 34 32 2c 30 |37984,0.|965242,0|
|000011d0| 3e 5d 3a 5b 3c 30 2c 30 | 2e 34 2c 30 2c 30 3e 5d |>]:[<0,0|.4,0,0>]|
|000011e0| 3a 5b 3c 31 2c 31 2c 31 | 2c 30 3e 5d 3b 20 0a 64 |:[<1,1,1|,0>]; .d|
|000011f0| 61 74 61 20 63 6f 6c 6f | 75 72 20 63 31 20 3d 20 |ata colo|ur c1 = |
|00001200| 5b 3c 30 2e 37 32 35 37 | 32 34 2c 30 2e 34 37 39 |[<0.7257|24,0.479|
|00001210| 32 32 33 2c 30 2e 35 37 | 34 30 33 38 2c 30 3e 5d |223,0.57|4038,0>]|
|00001220| 3a 5b 3c 30 2c 30 2e 34 | 2c 30 2c 30 3e 5d 3a 5b |:[<0,0.4|,0,0>]:[|
|00001230| 3c 31 2c 31 2c 31 2c 30 | 3e 5d 3b 20 0a 64 61 74 |<1,1,1,0|>]; .dat|
|00001240| 61 20 63 6f 6c 6f 75 72 | 20 63 32 20 3d 20 5b 3c |a colour| c2 = [<|
|00001250| 30 2e 37 38 37 38 38 34 | 2c 30 2e 34 37 32 38 39 |0.787884|,0.47289|
|00001260| 32 2c 30 2e 30 35 33 32 | 30 39 36 2c 30 3e 5d 3a |2,0.0532|096,0>]:|
|00001270| 5b 3c 30 2c 30 2e 34 2c | 30 2c 30 3e 5d 3a 5b 3c |[<0,0.4,|0,0>]:[<|
|00001280| 31 2c 31 2c 31 2c 30 3e | 5d 3b 20 0a 64 61 74 61 |1,1,1,0>|]; .data|
|00001290| 20 63 6f 6c 6f 75 72 20 | 63 33 20 3d 20 5b 3c 30 | colour |c3 = [<0|
|000012a0| 2e 34 37 38 30 33 36 2c | 30 2e 37 30 30 36 33 39 |.478036,|0.700639|
|000012b0| 2c 30 2e 39 32 30 30 30 | 33 2c 30 3e 5d 3a 5b 3c |,0.92000|3,0>]:[<|
|000012c0| 30 2c 30 2e 34 2c 30 2c | 30 3e 5d 3a 5b 3c 31 2c |0,0.4,0,|0>]:[<1,|
|000012d0| 31 2c 31 2c 30 3e 5d 3b | 20 0a 64 61 74 61 20 6e |1,1,0>];| .data n|
|000012e0| 75 6d 20 64 65 6c 74 61 | 31 20 3d 20 5b 30 2e 37 |um delta|1 = [0.7|
|000012f0| 37 31 38 30 36 5d 3a 5b | 30 2e 30 31 5d 3a 5b 31 |71806]:[|0.01]:[1|
|00001300| 5d 3b 20 0a 64 61 74 61 | 20 6e 75 6d 20 64 65 6c |]; .data| num del|
|00001310| 74 61 32 20 3d 20 5b 30 | 2e 31 38 39 32 37 5d 3a |ta2 = [0|.18927]:|
|00001320| 5b 30 2e 30 31 5d 3a 5b | 31 5d 3b 20 0a 64 61 74 |[0.01]:[|1]; .dat|
|00001330| 61 20 6e 75 6d 20 64 65 | 6c 74 61 33 20 3d 20 5b |a num de|lta3 = [|
|00001340| 30 2e 34 38 37 34 33 31 | 5d 3a 5b 30 2e 30 31 5d |0.487431|]:[0.01]|
|00001350| 3a 5b 31 5d 3b 20 0a 69 | 6e 69 74 5f 63 73 70 61 |:[1]; .i|nit_cspa|
|00001360| 63 65 28 69 6e 64 65 78 | 2c 63 30 29 3b 0a 65 78 |ce(index|,c0);.ex|
|00001370| 74 65 6e 64 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |tend_csp|ace(inde|
|00001380| 78 2c 64 65 6c 74 61 31 | 2c 63 31 29 3b 0a 65 78 |x,delta1|,c1);.ex|
|00001390| 74 65 6e 64 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |tend_csp|ace(inde|
|000013a0| 78 2c 64 65 6c 74 61 32 | 2c 63 32 29 3b 0a 65 78 |x,delta2|,c2);.ex|
|000013b0| 74 65 6e 64 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |tend_csp|ace(inde|
|000013c0| 78 2c 64 65 6c 74 61 33 | 2c 63 33 29 3b 0a 7d 0a |x,delta3|,c3);.}.|
|000013d0| 66 75 6e 63 20 76 6f 69 | 64 20 62 75 69 6c 64 43 |func voi|d buildC|
|000013e0| 53 70 61 63 65 44 28 20 | 69 6e 74 20 69 6e 64 65 |SpaceD( |int inde|
|000013f0| 78 20 29 20 7b 0a 64 61 | 74 61 20 63 6f 6c 6f 75 |x ) {.da|ta colou|
|00001400| 72 20 63 30 20 3d 20 5b | 3c 30 2e 39 30 36 37 31 |r c0 = [|<0.90671|
|00001410| 37 2c 30 2e 36 34 36 31 | 30 38 2c 30 2e 31 32 39 |7,0.6461|08,0.129|
|00001420| 36 35 31 2c 30 3e 5d 3a | 5b 3c 30 2c 30 2e 34 2c |651,0>]:|[<0,0.4,|
|00001430| 30 2c 30 3e 5d 3a 5b 3c | 31 2c 31 2c 31 2c 30 3e |0,0>]:[<|1,1,1,0>|
|00001440| 5d 3b 20 0a 64 61 74 61 | 20 63 6f 6c 6f 75 72 20 |]; .data| colour |
|00001450| 63 31 20 3d 20 5b 3c 30 | 2e 35 36 37 37 39 33 2c |c1 = [<0|.567793,|
|00001460| 30 2e 37 34 32 31 31 39 | 2c 30 2e 32 32 32 33 31 |0.742119|,0.22231|
|00001470| 36 2c 30 3e 5d 3a 5b 3c | 30 2c 30 2e 34 2c 30 2c |6,0>]:[<|0,0.4,0,|
|00001480| 30 3e 5d 3a 5b 3c 31 2c | 31 2c 31 2c 30 3e 5d 3b |0>]:[<1,|1,1,0>];|
|00001490| 20 0a 64 61 74 61 20 63 | 6f 6c 6f 75 72 20 63 32 | .data c|olour c2|
|000014a0| 20 3d 20 5b 3c 30 2e 34 | 35 32 32 31 38 2c 30 2e | = [<0.4|52218,0.|
|000014b0| 39 34 37 35 38 37 2c 30 | 2e 37 31 31 34 31 35 2c |947587,0|.711415,|
|000014c0| 30 3e 5d 3a 5b 3c 30 2c | 30 2e 34 2c 30 2c 30 3e |0>]:[<0,|0.4,0,0>|
|000014d0| 5d 3a 5b 3c 31 2c 31 2c | 31 2c 30 3e 5d 3b 20 0a |]:[<1,1,|1,0>]; .|
|000014e0| 64 61 74 61 20 63 6f 6c | 6f 75 72 20 63 33 20 3d |data col|our c3 =|
|000014f0| 20 5b 3c 30 2e 38 34 32 | 31 35 34 2c 30 2e 35 36 | [<0.842|154,0.56|
|00001500| 34 38 36 32 2c 30 2e 30 | 36 39 30 31 39 33 2c 30 |4862,0.0|690193,0|
|00001510| 3e 5d 3a 5b 3c 30 2c 30 | 2e 34 2c 30 2c 30 3e 5d |>]:[<0,0|.4,0,0>]|
|00001520| 3a 5b 3c 31 2c 31 2c 31 | 2c 30 3e 5d 3b 20 0a 64 |:[<1,1,1|,0>]; .d|
|00001530| 61 74 61 20 6e 75 6d 20 | 64 65 6c 74 61 31 20 3d |ata num |delta1 =|
|00001540| 20 5b 30 2e 33 33 39 31 | 39 32 5d 3a 5b 30 2e 30 | [0.3391|92]:[0.0|
|00001550| 31 5d 3a 5b 31 5d 3b 20 | 0a 64 61 74 61 20 6e 75 |1]:[1]; |.data nu|
|00001560| 6d 20 64 65 6c 74 61 32 | 20 3d 20 5b 30 2e 32 39 |m delta2| = [0.29|
|00001570| 33 39 33 31 5d 3a 5b 30 | 2e 30 31 5d 3a 5b 31 5d |3931]:[0|.01]:[1]|
|00001580| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 64 65 6c 74 |; .data |num delt|
|00001590| 61 33 20 3d 20 5b 30 2e | 35 33 39 33 38 5d 3a 5b |a3 = [0.|53938]:[|
|000015a0| 30 2e 30 31 5d 3a 5b 31 | 5d 3b 20 0a 69 6e 69 74 |0.01]:[1|]; .init|
|000015b0| 5f 63 73 70 61 63 65 28 | 69 6e 64 65 78 2c 63 30 |_cspace(|index,c0|
|000015c0| 29 3b 0a 65 78 74 65 6e | 64 5f 63 73 70 61 63 65 |);.exten|d_cspace|
|000015d0| 28 69 6e 64 65 78 2c 64 | 65 6c 74 61 31 2c 63 31 |(index,d|elta1,c1|
|000015e0| 29 3b 0a 65 78 74 65 6e | 64 5f 63 73 70 61 63 65 |);.exten|d_cspace|
|000015f0| 28 69 6e 64 65 78 2c 64 | 65 6c 74 61 32 2c 63 32 |(index,d|elta2,c2|
|00001600| 29 3b 0a 65 78 74 65 6e | 64 5f 63 73 70 61 63 65 |);.exten|d_cspace|
|00001610| 28 69 6e 64 65 78 2c 64 | 65 6c 74 61 33 2c 63 33 |(index,d|elta3,c3|
|00001620| 29 3b 0a 7d 0a 7d 20 0a | 7d 20 69 6e 64 69 20 64 |);.}.} .|} indi d|
|00001630| 61 6e 63 65 72 20 7b 0a | 2f 2f 20 42 61 73 65 49 |ancer {.|// BaseI|
|00001640| 6e 64 69 20 61 74 74 72 | 69 62 75 74 65 73 0a 2f |ndi attr|ibutes./|
|00001650| 2f 20 44 61 6e 63 65 72 | 49 6e 64 69 41 74 74 72 |/ Dancer|IndiAttr|
|00001660| 69 62 75 74 65 73 0a 67 | 65 6e 6f 6d 65 20 64 61 |ibutes.g|enome da|
|00001670| 6e 63 65 72 20 7b 0a 2f | 2f 20 42 61 73 65 47 65 |ncer {./|/ BaseGe|
|00001680| 6e 6f 6d 65 20 61 74 74 | 72 69 62 75 74 65 73 0a |nome att|ributes.|
|00001690| 2f 2f 20 44 61 6e 63 65 | 72 47 65 6e 6f 6d 65 20 |// Dance|rGenome |
|000016a0| 61 74 74 72 69 62 75 74 | 65 73 0a 70 72 6f 67 0a |attribut|es.prog.|
|000016b0| 66 75 6e 63 20 76 6f 69 | 64 20 6d 61 69 6e 28 29 |func voi|d main()|
|000016c0| 3b 0a 66 75 6e 63 20 76 | 6f 69 64 20 73 74 61 6c |;.func v|oid stal|
|000016d0| 6b 28 29 3b 0a 66 75 6e | 63 20 76 6f 69 64 20 70 |k();.fun|c void p|
|000016e0| 65 74 61 6c 28 29 3b 0a | 66 75 6e 63 20 76 6f 69 |etal();.|func voi|
|000016f0| 64 20 62 75 69 6c 64 43 | 53 70 61 63 65 41 28 20 |d buildC|SpaceA( |
|00001700| 69 6e 74 20 69 6e 64 65 | 78 20 29 3b 0a 66 75 6e |int inde|x );.fun|
|00001710| 63 20 76 6f 69 64 20 62 | 75 69 6c 64 43 53 70 61 |c void b|uildCSpa|
|00001720| 63 65 42 28 20 69 6e 74 | 20 69 6e 64 65 78 20 29 |ceB( int| index )|
|00001730| 3b 0a 66 75 6e 63 20 76 | 6f 69 64 20 62 75 69 6c |;.func v|oid buil|
|00001740| 64 43 53 70 61 63 65 43 | 28 20 69 6e 74 20 69 6e |dCSpaceC|( int in|
|00001750| 64 65 78 20 29 3b 0a 66 | 75 6e 63 20 76 6f 69 64 |dex );.f|unc void|
|00001760| 20 62 75 69 6c 64 43 53 | 70 61 63 65 44 28 20 69 | buildCS|paceD( i|
|00001770| 6e 74 20 69 6e 64 65 78 | 20 29 3b 0a 64 61 74 61 |nt index| );.data|
|00001780| 20 6e 75 6d 20 6f 70 65 | 6e 20 3d 20 5b 31 5d 3a | num ope|n = [1]:|
|00001790| 5b 30 5d 3a 5b 31 5d 3b | 20 0a 66 75 6e 63 20 76 |[0]:[1];| .func v|
|000017a0| 6f 69 64 20 6d 61 69 6e | 28 29 20 7b 0a 64 61 74 |oid main|() {.dat|
|000017b0| 61 20 6e 75 6d 20 6d 61 | 74 65 72 69 61 6c 5f 73 |a num ma|terial_s|
|000017c0| 68 69 6e 65 20 3d 20 5b | 38 2e 32 37 33 37 38 5d |hine = [|8.27378]|
|000017d0| 3a 5b 30 5d 3a 5b 31 30 | 5d 3b 20 0a 64 61 74 61 |:[0]:[10|]; .data|
|000017e0| 20 6e 75 6d 20 6d 61 74 | 65 72 69 61 6c 5f 73 68 | num mat|erial_sh|
|000017f0| 61 72 70 20 3d 20 5b 32 | 37 2e 39 32 36 36 5d 3a |arp = [2|7.9266]:|
|00001800| 5b 30 5d 3a 5b 31 30 30 | 5d 3b 20 0a 73 65 74 5f |[0]:[100|]; .set_|
|00001810| 73 68 69 6e 65 28 6d 61 | 74 65 72 69 61 6c 5f 73 |shine(ma|terial_s|
|00001820| 68 69 6e 65 29 3b 0a 73 | 65 74 5f 73 68 61 72 70 |hine);.s|et_sharp|
|00001830| 28 6d 61 74 65 72 69 61 | 6c 5f 73 68 61 72 70 29 |(materia|l_sharp)|
|00001840| 3b 0a 62 75 69 6c 64 43 | 53 70 61 63 65 41 28 5b |;.buildC|SpaceA([|
|00001850| 30 5d 29 3b 0a 62 75 69 | 6c 64 43 53 70 61 63 65 |0]);.bui|ldCSpace|
|00001860| 42 28 5b 31 5d 29 3b 0a | 62 75 69 6c 64 43 53 70 |B([1]);.|buildCSp|
|00001870| 61 63 65 43 28 5b 32 5d | 29 3b 0a 62 75 69 6c 64 |aceC([2]|);.build|
|00001880| 43 53 70 61 63 65 44 28 | 5b 33 5d 29 3b 0a 64 61 |CSpaceD(|[3]);.da|
|00001890| 74 61 20 6e 75 6d 20 66 | 73 69 7a 65 20 3d 20 5b |ta num f|size = [|
|000018a0| 30 2e 39 5d 3b 20 0a 73 | 74 61 6c 6b 28 29 3b 0a |0.9]; .s|talk();.|
|000018b0| 64 61 74 61 20 6e 75 6d | 20 70 65 74 61 6c 5f 66 |data num| petal_f|
|000018c0| 77 64 20 3d 20 5b 31 39 | 2e 39 37 35 34 5d 3a 5b |wd = [19|.9754]:[|
|000018d0| 2d 32 30 5d 3a 5b 32 30 | 5d 3b 20 0a 66 6f 72 77 |-20]:[20|]; .forw|
|000018e0| 61 72 64 28 28 70 65 74 | 61 6c 5f 66 77 64 2a 6f |ard((pet|al_fwd*o|
|000018f0| 70 65 6e 29 29 3b 0a 70 | 69 74 63 68 28 28 5b 33 |pen));.p|itch(([3|
|00001900| 2e 31 34 31 35 39 5d 2f | 5b 32 5d 29 29 3b 0a 70 |.14159]/|[2]));.p|
|00001910| 65 74 61 6c 28 29 3b 0a | 79 61 77 28 28 28 5b 32 |etal();.|yaw((([2|
|00001920| 5d 2a 5b 33 2e 31 34 31 | 35 39 5d 29 2f 5b 35 5d |]*[3.141|59])/[5]|
|00001930| 29 29 3b 0a 70 65 74 61 | 6c 28 29 3b 0a 79 61 77 |));.peta|l();.yaw|
|00001940| 28 28 28 5b 32 5d 2a 5b | 33 2e 31 34 31 35 39 5d |((([2]*[|3.14159]|
|00001950| 29 2f 5b 35 5d 29 29 3b | 0a 70 65 74 61 6c 28 29 |)/[5]));|.petal()|
|00001960| 3b 0a 79 61 77 28 28 28 | 5b 32 5d 2a 5b 33 2e 31 |;.yaw(((|[2]*[3.1|
|00001970| 34 31 35 39 5d 29 2f 5b | 35 5d 29 29 3b 0a 70 65 |4159])/[|5]));.pe|
|00001980| 74 61 6c 28 29 3b 0a 79 | 61 77 28 28 28 5b 32 5d |tal();.y|aw((([2]|
|00001990| 2a 5b 33 2e 31 34 31 35 | 39 5d 29 2f 5b 35 5d 29 |*[3.1415|9])/[5])|
|000019a0| 29 3b 0a 70 65 74 61 6c | 28 29 3b 0a 7d 0a 66 75 |);.petal|();.}.fu|
|000019b0| 6e 63 20 76 6f 69 64 20 | 73 74 61 6c 6b 28 29 20 |nc void |stalk() |
|000019c0| 7b 0a 64 61 74 61 20 6e | 75 6d 20 73 70 68 65 72 |{.data n|um spher|
|000019d0| 65 6e 65 73 73 20 3d 20 | 6f 70 65 6e 3b 20 0a 64 |eness = |open; .d|
|000019e0| 61 74 61 20 6e 75 6d 20 | 73 68 65 65 74 6e 65 73 |ata num |sheetnes|
|000019f0| 73 20 3d 20 28 5b 31 5d | 2d 73 70 68 65 72 65 6e |s = ([1]|-spheren|
|00001a00| 65 73 73 29 3b 20 0a 64 | 61 74 61 20 69 6e 74 20 |ess); .d|ata int |
|00001a10| 6d 61 78 72 69 6e 67 73 | 20 3d 20 5b 38 5d 3b 20 |maxrings| = [8]; |
|00001a20| 0a 64 61 74 61 20 6e 75 | 6d 20 61 6c 70 68 61 20 |.data nu|m alpha |
|00001a30| 3d 20 5b 30 5d 3b 20 0a | 64 61 74 61 20 6e 75 6d |= [0]; .|data num|
|00001a40| 20 64 65 6c 74 61 61 6c | 70 68 61 20 3d 20 28 5b | deltaal|pha = ([|
|00001a50| 33 2e 31 34 31 35 39 5d | 2f 69 74 6f 6e 28 6d 61 |3.14159]|/iton(ma|
|00001a60| 78 72 69 6e 67 73 29 29 | 3b 20 0a 73 65 74 5f 74 |xrings))|; .set_t|
|00001a70| 65 78 74 75 72 65 28 5b | 30 5d 29 3b 0a 64 61 74 |exture([|0]);.dat|
|00001a80| 61 20 6e 75 6d 20 73 70 | 68 65 72 65 5f 65 78 70 |a num sp|here_exp|
|00001a90| 61 6e 64 65 64 20 3d 20 | 5b 31 2e 39 37 36 34 37 |anded = |[1.97647|
|00001aa0| 5d 3a 5b 2d 31 30 5d 3a | 5b 31 35 5d 3b 20 0a 69 |]:[-10]:|[15]; .i|
|00001ab0| 66 28 6c 65 73 73 28 73 | 70 68 65 72 65 5f 65 78 |f(less(s|phere_ex|
|00001ac0| 70 61 6e 64 65 64 2c 5b | 31 5d 29 29 20 7b 0a 73 |panded,[|1])) {.s|
|00001ad0| 70 68 65 72 65 5f 65 78 | 70 61 6e 64 65 64 20 3d |phere_ex|panded =|
|00001ae0| 20 5b 31 5d 3b 0a 7d 20 | 0a 66 6f 72 28 20 69 6e | [1];.} |.for( in|
|00001af0| 74 20 72 69 6e 67 20 3d | 20 5b 30 5d 3b 20 69 6c |t ring =| [0]; il|
|00001b00| 65 73 73 28 72 69 6e 67 | 2c 6d 61 78 72 69 6e 67 |ess(ring|,maxring|
|00001b10| 73 29 3b 20 28 72 69 6e | 67 2b 5b 31 5d 29 20 29 |s); (rin|g+[1]) )|
|00001b20| 20 7b 0a 64 61 74 61 20 | 6e 75 6d 20 6c 6f 63 75 | {.data |num locu|
|00001b30| 73 20 3d 20 28 69 74 6f | 6e 28 72 69 6e 67 29 2f |s = (ito|n(ring)/|
|00001b40| 69 74 6f 6e 28 6d 61 78 | 72 69 6e 67 73 29 29 3b |iton(max|rings));|
|00001b50| 20 0a 73 65 74 5f 63 6f | 6c 6f 75 72 28 63 73 70 | .set_co|lour(csp|
|00001b60| 61 63 65 28 5b 32 5d 2c | 6c 6f 63 75 73 29 29 3b |ace([2],|locus));|
|00001b70| 0a 64 61 74 61 20 6e 75 | 6d 20 73 70 68 65 72 65 |.data nu|m sphere|
|00001b80| 7a 20 3d 20 28 63 6f 73 | 28 61 6c 70 68 61 29 2a |z = (cos|(alpha)*|
|00001b90| 73 70 68 65 72 65 5f 65 | 78 70 61 6e 64 65 64 29 |sphere_e|xpanded)|
|00001ba0| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 73 70 68 65 |; .data |num sphe|
|00001bb0| 72 65 72 61 64 69 75 73 | 20 3d 20 28 73 69 6e 28 |reradius| = (sin(|
|00001bc0| 61 6c 70 68 61 29 2a 73 | 70 68 65 72 65 5f 65 78 |alpha)*s|phere_ex|
|00001bd0| 70 61 6e 64 65 64 29 3b | 20 0a 64 61 74 61 20 6e |panded);| .data n|
|00001be0| 75 6d 20 63 69 72 63 75 | 6d 20 3d 20 28 28 5b 32 |um circu|m = (([2|
|00001bf0| 5d 2a 5b 33 2e 31 34 31 | 35 39 5d 29 2a 69 74 6f |]*[3.141|59])*ito|
|00001c00| 6e 28 72 69 6e 67 29 29 | 3b 20 0a 64 61 74 61 20 |n(ring))|; .data |
|00001c10| 69 6e 74 20 73 65 67 73 | 20 3d 20 6e 74 6f 69 28 |int segs| = ntoi(|
|00001c20| 63 69 72 63 75 6d 29 3b | 20 0a 64 61 74 61 20 6e |circum);| .data n|
|00001c30| 75 6d 20 64 65 6c 74 61 | 74 68 65 74 61 20 3d 20 |um delta|theta = |
|00001c40| 28 28 5b 32 5d 2a 5b 33 | 2e 31 34 31 35 39 5d 29 |(([2]*[3|.14159])|
|00001c50| 2f 63 69 72 63 75 6d 29 | 3b 20 0a 64 61 74 61 20 |/circum)|; .data |
|00001c60| 6e 75 6d 20 74 68 65 74 | 61 20 3d 20 5b 30 5d 3b |num thet|a = [0];|
|00001c70| 20 0a 66 6f 72 28 20 69 | 6e 74 20 73 65 67 20 3d | .for( i|nt seg =|
|00001c80| 20 5b 30 5d 3b 20 69 6c | 65 73 73 28 73 65 67 2c | [0]; il|ess(seg,|
|00001c90| 73 65 67 73 29 3b 20 28 | 73 65 67 2b 5b 31 5d 29 |segs); (|seg+[1])|
|00001ca0| 20 29 20 7b 0a 64 61 74 | 61 20 6e 75 6d 20 6e 6f | ) {.dat|a num no|
|00001cb0| 72 6d 78 20 3d 20 63 6f | 73 28 74 68 65 74 61 29 |rmx = co|s(theta)|
|00001cc0| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 6e 6f 72 6d |; .data |num norm|
|00001cd0| 79 20 3d 20 73 69 6e 28 | 74 68 65 74 61 29 3b 20 |y = sin(|theta); |
|00001ce0| 0a 64 61 74 61 20 6e 75 | 6d 20 73 68 65 65 74 72 |.data nu|m sheetr|
|00001cf0| 61 64 69 75 73 20 3d 20 | 69 74 6f 6e 28 72 69 6e |adius = |iton(rin|
|00001d00| 67 29 3b 20 0a 64 61 74 | 61 20 6e 75 6d 20 74 6f |g); .dat|a num to|
|00001d10| 74 61 6c 72 61 64 69 75 | 73 20 3d 20 28 28 73 68 |talradiu|s = ((sh|
|00001d20| 65 65 74 6e 65 73 73 2a | 73 68 65 65 74 72 61 64 |eetness*|sheetrad|
|00001d30| 69 75 73 29 2b 28 73 70 | 68 65 72 65 6e 65 73 73 |ius)+(sp|hereness|
|00001d40| 2a 73 70 68 65 72 65 72 | 61 64 69 75 73 29 29 3b |*spherer|adius));|
|00001d50| 20 0a 64 61 74 61 20 6e | 75 6d 20 78 20 3d 20 28 | .data n|um x = (|
|00001d60| 74 6f 74 61 6c 72 61 64 | 69 75 73 2a 6e 6f 72 6d |totalrad|ius*norm|
|00001d70| 78 29 3b 20 0a 64 61 74 | 61 20 6e 75 6d 20 79 20 |x); .dat|a num y |
|00001d80| 3d 20 28 74 6f 74 61 6c | 72 61 64 69 75 73 2a 6e |= (total|radius*n|
|00001d90| 6f 72 6d 79 29 3b 20 0a | 64 61 74 61 20 6e 75 6d |ormy); .|data num|
|00001da0| 20 7a 20 3d 20 28 73 70 | 68 65 72 65 6e 65 73 73 | z = (sp|hereness|
|00001db0| 2a 73 70 68 65 72 65 7a | 29 3b 20 0a 70 75 73 68 |*spherez|); .push|
|00001dc0| 28 29 3b 0a 64 61 74 61 | 20 6e 75 6d 20 73 70 68 |();.data| num sph|
|00001dd0| 65 72 65 73 69 7a 65 20 | 3d 20 5b 30 2e 36 33 33 |eresize |= [0.633|
|00001de0| 34 33 39 5d 3a 5b 30 2e | 31 5d 3a 5b 31 5d 3b 20 |439]:[0.|1]:[1]; |
|00001df0| 0a 65 67 67 5f 75 73 63 | 61 6c 65 28 73 70 68 65 |.egg_usc|ale(sphe|
|00001e00| 72 65 73 69 7a 65 29 3b | 0a 6d 6f 76 65 28 76 33 |resize);|.move(v3|
|00001e10| 6d 61 6b 65 28 78 2c 79 | 2c 7a 29 29 3b 0a 73 65 |make(x,y|,z));.se|
|00001e20| 74 5f 70 72 69 6d 28 5b | 33 5d 29 3b 0a 6c 61 79 |t_prim([|3]);.lay|
|00001e30| 28 29 3b 0a 70 6f 70 28 | 29 3b 0a 74 68 65 74 61 |();.pop(|);.theta|
|00001e40| 20 3d 20 28 74 68 65 74 | 61 2b 64 65 6c 74 61 74 | = (thet|a+deltat|
|00001e50| 68 65 74 61 29 3b 0a 7d | 20 0a 61 6c 70 68 61 20 |heta);.}| .alpha |
|00001e60| 3d 20 28 61 6c 70 68 61 | 2b 64 65 6c 74 61 61 6c |= (alpha|+deltaal|
|00001e70| 70 68 61 29 3b 0a 7d 20 | 0a 7d 0a 66 75 6e 63 20 |pha);.} |.}.func |
|00001e80| 76 6f 69 64 20 70 65 74 | 61 6c 28 29 20 7b 0a 70 |void pet|al() {.p|
|00001e90| 75 73 68 28 29 3b 0a 66 | 6f 72 77 61 72 64 28 5b |ush();.f|orward([|
|00001ea0| 32 2e 35 5d 29 3b 0a 70 | 69 74 63 68 28 28 2d 5b |2.5]);.p|itch((-[|
|00001eb0| 33 2e 31 34 31 35 39 5d | 2f 5b 35 5d 29 29 3b 0a |3.14159]|/[5]));.|
|00001ec0| 79 61 77 28 28 2d 5b 33 | 2e 31 34 31 35 39 5d 2f |yaw((-[3|.14159]/|
|00001ed0| 5b 34 5d 29 29 3b 0a 72 | 6f 6c 6c 28 28 2d 5b 33 |[4]));.r|oll((-[3|
|00001ee0| 2e 31 34 31 35 39 5d 2f | 5b 36 5d 29 29 3b 0a 73 |.14159]/|[6]));.s|
|00001ef0| 65 74 5f 70 72 69 6d 28 | 5b 33 5d 29 3b 0a 64 61 |et_prim(|[3]);.da|
|00001f00| 74 61 20 69 6e 74 20 73 | 65 67 73 20 3d 20 5b 33 |ta int s|egs = [3|
|00001f10| 30 5d 3b 20 0a 73 65 74 | 5f 74 65 78 74 75 72 65 |0]; .set|_texture|
|00001f20| 28 5b 31 5d 29 3b 0a 66 | 6f 72 28 20 69 6e 74 20 |([1]);.f|or( int |
|00001f30| 69 20 3d 20 5b 31 5d 3b | 20 69 6c 65 73 73 28 69 |i = [1];| iless(i|
|00001f40| 2c 73 65 67 73 29 3b 20 | 28 69 2b 5b 31 5d 29 20 |,segs); |(i+[1]) |
|00001f50| 29 20 7b 0a 64 61 74 61 | 20 6e 75 6d 20 61 6d 70 |) {.data| num amp|
|00001f60| 6c 69 74 75 64 65 20 3d | 20 73 69 6e 28 28 28 5b |litude =| sin((([|
|00001f70| 33 2e 31 34 31 35 39 5d | 2a 69 74 6f 6e 28 69 29 |3.14159]|*iton(i)|
|00001f80| 29 2f 69 74 6f 6e 28 73 | 65 67 73 29 29 29 3b 20 |)/iton(s|egs))); |
|00001f90| 0a 73 65 74 5f 63 6f 6c | 6f 75 72 28 63 73 70 61 |.set_col|our(cspa|
|00001fa0| 63 65 28 5b 31 5d 2c 61 | 6d 70 6c 69 74 75 64 65 |ce([1],a|mplitude|
|00001fb0| 29 29 3b 0a 79 61 77 28 | 28 5b 33 2e 31 34 31 35 |));.yaw(|([3.1415|
|00001fc0| 39 5d 2f 69 74 6f 6e 28 | 73 65 67 73 29 29 29 3b |9]/iton(|segs)));|
|00001fd0| 0a 70 75 73 68 28 29 3b | 0a 66 6f 72 77 61 72 64 |.push();|.forward|
|00001fe0| 28 5b 30 2e 31 5d 29 3b | 0a 64 61 74 61 20 6e 75 |([0.1]);|.data nu|
|00001ff0| 6d 20 66 6c 65 78 20 3d | 20 5b 2d 30 2e 31 39 37 |m flex =| [-0.197|
|00002000| 37 36 32 5d 3a 5b 2d 32 | 2e 35 5d 3a 5b 32 2e 35 |762]:[-2|.5]:[2.5|
|00002010| 5d 3b 20 0a 65 67 67 5f | 73 63 61 6c 65 28 76 33 |]; .egg_|scale(v3|
|00002020| 6d 61 6b 65 28 6f 70 65 | 6e 2c 6f 70 65 6e 2c 28 |make(ope|n,open,(|
|00002030| 28 6f 70 65 6e 2a 5b 36 | 5d 29 2a 28 61 6d 70 6c |(open*[6|])*(ampl|
|00002040| 69 74 75 64 65 2b 5b 31 | 5d 29 29 29 29 3b 0a 70 |itude+[1|]))));.p|
|00002050| 69 74 63 68 28 28 28 28 | 5b 33 2e 31 34 31 35 39 |itch((((|[3.14159|
|00002060| 5d 2f 5b 32 5d 29 2a 61 | 6d 70 6c 69 74 75 64 65 |]/[2])*a|mplitude|
|00002070| 29 2a 66 6c 65 78 29 29 | 3b 0a 6c 61 79 28 29 3b |)*flex))|;.lay();|
|00002080| 0a 70 6f 70 28 29 3b 0a | 79 61 77 28 28 5b 33 2e |.pop();.|yaw(([3.|
|00002090| 31 34 31 35 39 5d 2f 5b | 32 5d 29 29 3b 0a 66 6f |14159]/[|2]));.fo|
|000020a0| 72 77 61 72 64 28 28 5b | 30 2e 34 5d 2a 6f 70 65 |rward(([|0.4]*ope|
|000020b0| 6e 29 29 3b 0a 79 61 77 | 28 28 2d 5b 33 2e 31 34 |n));.yaw|((-[3.14|
|000020c0| 31 35 39 5d 2f 5b 32 5d | 29 29 3b 0a 7d 20 0a 70 |159]/[2]|));.} .p|
|000020d0| 6f 70 28 29 3b 0a 7d 0a | 66 75 6e 63 20 76 6f 69 |op();.}.|func voi|
|000020e0| 64 20 62 75 69 6c 64 43 | 53 70 61 63 65 41 28 20 |d buildC|SpaceA( |
|000020f0| 69 6e 74 20 69 6e 64 65 | 78 20 29 20 7b 0a 64 61 |int inde|x ) {.da|
|00002100| 74 61 20 63 6f 6c 6f 75 | 72 20 63 30 20 3d 20 5b |ta colou|r c0 = [|
|00002110| 3c 30 2e 33 36 36 34 35 | 38 2c 30 2e 39 36 38 38 |<0.36645|8,0.9688|
|00002120| 37 2c 30 2e 35 39 31 33 | 38 33 2c 30 3e 5d 3a 5b |7,0.5913|83,0>]:[|
|00002130| 3c 30 2c 30 2e 34 2c 30 | 2c 30 3e 5d 3a 5b 3c 31 |<0,0.4,0|,0>]:[<1|
|00002140| 2c 31 2c 31 2c 30 3e 5d | 3b 20 0a 64 61 74 61 20 |,1,1,0>]|; .data |
|00002150| 63 6f 6c 6f 75 72 20 63 | 31 20 3d 20 5b 3c 30 2e |colour c|1 = [<0.|
|00002160| 37 32 38 34 31 36 2c 30 | 2e 35 37 31 33 39 35 2c |728416,0|.571395,|
|00002170| 30 2e 36 36 37 35 35 38 | 2c 30 3e 5d 3a 5b 3c 30 |0.667558|,0>]:[<0|
|00002180| 2c 30 2e 34 2c 30 2c 30 | 3e 5d 3a 5b 3c 31 2c 31 |,0.4,0,0|>]:[<1,1|
|00002190| 2c 31 2c 30 3e 5d 3b 20 | 0a 64 61 74 61 20 63 6f |,1,0>]; |.data co|
|000021a0| 6c 6f 75 72 20 63 32 20 | 3d 20 5b 3c 30 2e 36 33 |lour c2 |= [<0.63|
|000021b0| 35 31 34 36 2c 30 2e 35 | 38 35 35 36 33 2c 30 2e |5146,0.5|85563,0.|
|000021c0| 31 39 31 31 36 34 2c 30 | 3e 5d 3a 5b 3c 30 2c 30 |191164,0|>]:[<0,0|
|000021d0| 2e 34 2c 30 2c 30 3e 5d | 3a 5b 3c 31 2c 31 2c 31 |.4,0,0>]|:[<1,1,1|
|000021e0| 2c 30 3e 5d 3b 20 0a 64 | 61 74 61 20 63 6f 6c 6f |,0>]; .d|ata colo|
|000021f0| 75 72 20 63 33 20 3d 20 | 5b 3c 30 2e 32 35 31 32 |ur c3 = |[<0.2512|
|00002200| 35 37 2c 30 2e 35 34 31 | 37 38 39 2c 30 2e 37 39 |57,0.541|789,0.79|
|00002210| 31 36 36 37 2c 30 3e 5d | 3a 5b 3c 30 2c 30 2e 34 |1667,0>]|:[<0,0.4|
|00002220| 2c 30 2c 30 3e 5d 3a 5b | 3c 31 2c 31 2c 31 2c 30 |,0,0>]:[|<1,1,1,0|
|00002230| 3e 5d 3b 20 0a 64 61 74 | 61 20 6e 75 6d 20 64 65 |>]; .dat|a num de|
|00002240| 6c 74 61 31 20 3d 20 5b | 30 2e 37 38 30 37 37 39 |lta1 = [|0.780779|
|00002250| 5d 3a 5b 30 2e 30 31 5d | 3a 5b 31 5d 3b 20 0a 64 |]:[0.01]|:[1]; .d|
|00002260| 61 74 61 20 6e 75 6d 20 | 64 65 6c 74 61 32 20 3d |ata num |delta2 =|
|00002270| 20 5b 30 2e 34 39 32 34 | 37 37 5d 3a 5b 30 2e 30 | [0.4924|77]:[0.0|
|00002280| 31 5d 3a 5b 31 5d 3b 20 | 0a 64 61 74 61 20 6e 75 |1]:[1]; |.data nu|
|00002290| 6d 20 64 65 6c 74 61 33 | 20 3d 20 5b 30 2e 31 31 |m delta3| = [0.11|
|000022a0| 33 36 31 35 5d 3a 5b 30 | 2e 30 31 5d 3a 5b 31 5d |3615]:[0|.01]:[1]|
|000022b0| 3b 20 0a 69 6e 69 74 5f | 63 73 70 61 63 65 28 69 |; .init_|cspace(i|
|000022c0| 6e 64 65 78 2c 63 30 29 | 3b 0a 65 78 74 65 6e 64 |ndex,c0)|;.extend|
|000022d0| 5f 63 73 70 61 63 65 28 | 69 6e 64 65 78 2c 64 65 |_cspace(|index,de|
|000022e0| 6c 74 61 31 2c 63 31 29 | 3b 0a 65 78 74 65 6e 64 |lta1,c1)|;.extend|
|000022f0| 5f 63 73 70 61 63 65 28 | 69 6e 64 65 78 2c 64 65 |_cspace(|index,de|
|00002300| 6c 74 61 32 2c 63 32 29 | 3b 0a 65 78 74 65 6e 64 |lta2,c2)|;.extend|
|00002310| 5f 63 73 70 61 63 65 28 | 69 6e 64 65 78 2c 64 65 |_cspace(|index,de|
|00002320| 6c 74 61 33 2c 63 33 29 | 3b 0a 7d 0a 66 75 6e 63 |lta3,c3)|;.}.func|
|00002330| 20 76 6f 69 64 20 62 75 | 69 6c 64 43 53 70 61 63 | void bu|ildCSpac|
|00002340| 65 42 28 20 69 6e 74 20 | 69 6e 64 65 78 20 29 20 |eB( int |index ) |
|00002350| 7b 0a 64 61 74 61 20 63 | 6f 6c 6f 75 72 20 63 30 |{.data c|olour c0|
|00002360| 20 3d 20 5b 3c 30 2e 30 | 35 37 37 39 36 38 2c 30 | = [<0.0|577968,0|
|00002370| 2e 35 33 32 30 30 39 2c | 30 2e 39 31 38 36 32 38 |.532009,|0.918628|
|00002380| 2c 30 3e 5d 3a 5b 3c 30 | 2c 30 2e 34 2c 30 2c 30 |,0>]:[<0|,0.4,0,0|
|00002390| 3e 5d 3a 5b 3c 31 2c 31 | 2c 31 2c 30 3e 5d 3b 20 |>]:[<1,1|,1,0>]; |
|000023a0| 0a 64 61 74 61 20 63 6f | 6c 6f 75 72 20 63 31 20 |.data co|lour c1 |
|000023b0| 3d 20 5b 3c 30 2e 39 32 | 33 33 36 36 2c 30 2e 38 |= [<0.92|3366,0.8|
|000023c0| 38 34 33 39 32 2c 30 2e | 35 34 30 31 32 33 2c 30 |84392,0.|540123,0|
|000023d0| 3e 5d 3a 5b 3c 30 2c 30 | 2e 34 2c 30 2c 30 3e 5d |>]:[<0,0|.4,0,0>]|
|000023e0| 3a 5b 3c 31 2c 31 2c 31 | 2c 30 3e 5d 3b 20 0a 64 |:[<1,1,1|,0>]; .d|
|000023f0| 61 74 61 20 63 6f 6c 6f | 75 72 20 63 32 20 3d 20 |ata colo|ur c2 = |
|00002400| 5b 3c 30 2e 35 30 37 30 | 32 2c 30 2e 34 32 35 34 |[<0.5070|2,0.4254|
|00002410| 33 37 2c 30 2e 35 33 30 | 33 36 37 2c 30 3e 5d 3a |37,0.530|367,0>]:|
|00002420| 5b 3c 30 2c 30 2e 34 2c | 30 2c 30 3e 5d 3a 5b 3c |[<0,0.4,|0,0>]:[<|
|00002430| 31 2c 31 2c 31 2c 30 3e | 5d 3b 20 0a 64 61 74 61 |1,1,1,0>|]; .data|
|00002440| 20 63 6f 6c 6f 75 72 20 | 63 33 20 3d 20 5b 3c 30 | colour |c3 = [<0|
|00002450| 2e 36 30 32 30 35 2c 30 | 2e 38 33 36 36 36 37 2c |.60205,0|.836667,|
|00002460| 30 2e 33 33 31 35 36 33 | 2c 30 3e 5d 3a 5b 3c 30 |0.331563|,0>]:[<0|
|00002470| 2c 30 2e 34 2c 30 2c 30 | 3e 5d 3a 5b 3c 31 2c 31 |,0.4,0,0|>]:[<1,1|
|00002480| 2c 31 2c 30 3e 5d 3b 20 | 0a 64 61 74 61 20 6e 75 |,1,0>]; |.data nu|
|00002490| 6d 20 64 65 6c 74 61 31 | 20 3d 20 5b 30 2e 39 36 |m delta1| = [0.96|
|000024a0| 35 38 39 32 5d 3a 5b 30 | 2e 30 31 5d 3a 5b 31 5d |5892]:[0|.01]:[1]|
|000024b0| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 64 65 6c 74 |; .data |num delt|
|000024c0| 61 32 20 3d 20 5b 30 2e | 37 33 31 35 35 38 5d 3a |a2 = [0.|731558]:|
|000024d0| 5b 30 2e 30 31 5d 3a 5b | 31 5d 3b 20 0a 64 61 74 |[0.01]:[|1]; .dat|
|000024e0| 61 20 6e 75 6d 20 64 65 | 6c 74 61 33 20 3d 20 5b |a num de|lta3 = [|
|000024f0| 30 2e 33 33 36 36 31 5d | 3a 5b 30 2e 30 31 5d 3a |0.33661]|:[0.01]:|
|00002500| 5b 31 5d 3b 20 0a 69 6e | 69 74 5f 63 73 70 61 63 |[1]; .in|it_cspac|
|00002510| 65 28 69 6e 64 65 78 2c | 63 30 29 3b 0a 65 78 74 |e(index,|c0);.ext|
|00002520| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00002530| 2c 64 65 6c 74 61 31 2c | 63 31 29 3b 0a 65 78 74 |,delta1,|c1);.ext|
|00002540| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00002550| 2c 64 65 6c 74 61 32 2c | 63 32 29 3b 0a 65 78 74 |,delta2,|c2);.ext|
|00002560| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00002570| 2c 64 65 6c 74 61 33 2c | 63 33 29 3b 0a 7d 0a 66 |,delta3,|c3);.}.f|
|00002580| 75 6e 63 20 76 6f 69 64 | 20 62 75 69 6c 64 43 53 |unc void| buildCS|
|00002590| 70 61 63 65 43 28 20 69 | 6e 74 20 69 6e 64 65 78 |paceC( i|nt index|
|000025a0| 20 29 20 7b 0a 64 61 74 | 61 20 63 6f 6c 6f 75 72 | ) {.dat|a colour|
|000025b0| 20 63 30 20 3d 20 5b 3c | 30 2e 33 35 34 30 34 36 | c0 = [<|0.354046|
|000025c0| 2c 30 2e 34 34 38 36 39 | 38 2c 30 2e 33 30 33 35 |,0.44869|8,0.3035|
|000025d0| 33 32 2c 30 3e 5d 3a 5b | 3c 30 2c 30 2e 34 2c 30 |32,0>]:[|<0,0.4,0|
|000025e0| 2c 30 3e 5d 3a 5b 3c 31 | 2c 31 2c 31 2c 30 3e 5d |,0>]:[<1|,1,1,0>]|
|000025f0| 3b 20 0a 64 61 74 61 20 | 63 6f 6c 6f 75 72 20 63 |; .data |colour c|
|00002600| 31 20 3d 20 5b 3c 30 2e | 31 31 32 38 35 34 2c 30 |1 = [<0.|112854,0|
|00002610| 2e 39 34 37 37 30 38 2c | 30 2e 37 32 38 30 36 34 |.947708,|0.728064|
|00002620| 2c 30 3e 5d 3a 5b 3c 30 | 2c 30 2e 34 2c 30 2c 30 |,0>]:[<0|,0.4,0,0|
|00002630| 3e 5d 3a 5b 3c 31 2c 31 | 2c 31 2c 30 3e 5d 3b 20 |>]:[<1,1|,1,0>]; |
|00002640| 0a 64 61 74 61 20 63 6f | 6c 6f 75 72 20 63 32 20 |.data co|lour c2 |
|00002650| 3d 20 5b 3c 30 2e 39 32 | 36 32 31 34 2c 30 2e 39 |= [<0.92|6214,0.9|
|00002660| 36 30 38 32 36 2c 30 2e | 32 30 39 37 35 35 2c 30 |60826,0.|209755,0|
|00002670| 3e 5d 3a 5b 3c 30 2c 30 | 2e 34 2c 30 2c 30 3e 5d |>]:[<0,0|.4,0,0>]|
|00002680| 3a 5b 3c 31 2c 31 2c 31 | 2c 30 3e 5d 3b 20 0a 64 |:[<1,1,1|,0>]; .d|
|00002690| 61 74 61 20 63 6f 6c 6f | 75 72 20 63 33 20 3d 20 |ata colo|ur c3 = |
|000026a0| 5b 3c 30 2e 34 38 35 30 | 38 31 2c 30 2e 37 35 31 |[<0.4850|81,0.751|
|000026b0| 33 38 33 2c 30 2e 39 31 | 30 32 38 31 2c 30 3e 5d |383,0.91|0281,0>]|
|000026c0| 3a 5b 3c 30 2c 30 2e 34 | 2c 30 2c 30 3e 5d 3a 5b |:[<0,0.4|,0,0>]:[|
|000026d0| 3c 31 2c 31 2c 31 2c 30 | 3e 5d 3b 20 0a 64 61 74 |<1,1,1,0|>]; .dat|
|000026e0| 61 20 6e 75 6d 20 64 65 | 6c 74 61 31 20 3d 20 5b |a num de|lta1 = [|
|000026f0| 30 2e 38 36 37 33 35 36 | 5d 3a 5b 30 2e 30 31 5d |0.867356|]:[0.01]|
|00002700| 3a 5b 31 5d 3b 20 0a 64 | 61 74 61 20 6e 75 6d 20 |:[1]; .d|ata num |
|00002710| 64 65 6c 74 61 32 20 3d | 20 5b 30 2e 31 33 35 35 |delta2 =| [0.1355|
|00002720| 37 37 5d 3a 5b 30 2e 30 | 31 5d 3a 5b 31 5d 3b 20 |77]:[0.0|1]:[1]; |
|00002730| 0a 64 61 74 61 20 6e 75 | 6d 20 64 65 6c 74 61 33 |.data nu|m delta3|
|00002740| 20 3d 20 5b 30 2e 35 36 | 30 39 36 34 5d 3a 5b 30 | = [0.56|0964]:[0|
|00002750| 2e 30 31 5d 3a 5b 31 5d | 3b 20 0a 69 6e 69 74 5f |.01]:[1]|; .init_|
|00002760| 63 73 70 61 63 65 28 69 | 6e 64 65 78 2c 63 30 29 |cspace(i|ndex,c0)|
|00002770| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|00002780| 69 6e 64 65 78 2c 64 65 | 6c 74 61 31 2c 63 31 29 |index,de|lta1,c1)|
|00002790| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|000027a0| 69 6e 64 65 78 2c 64 65 | 6c 74 61 32 2c 63 32 29 |index,de|lta2,c2)|
|000027b0| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|000027c0| 69 6e 64 65 78 2c 64 65 | 6c 74 61 33 2c 63 33 29 |index,de|lta3,c3)|
|000027d0| 3b 0a 7d 0a 66 75 6e 63 | 20 76 6f 69 64 20 62 75 |;.}.func| void bu|
|000027e0| 69 6c 64 43 53 70 61 63 | 65 44 28 20 69 6e 74 20 |ildCSpac|eD( int |
|000027f0| 69 6e 64 65 78 20 29 20 | 7b 0a 64 61 74 61 20 63 |index ) |{.data c|
|00002800| 6f 6c 6f 75 72 20 63 30 | 20 3d 20 5b 3c 30 2e 36 |olour c0| = [<0.6|
|00002810| 33 37 38 34 39 2c 30 2e | 37 37 39 37 38 32 2c 30 |37849,0.|779782,0|
|00002820| 2e 31 37 33 39 30 32 2c | 30 3e 5d 3a 5b 3c 30 2c |.173902,|0>]:[<0,|
|00002830| 30 2e 34 2c 30 2c 30 3e | 5d 3a 5b 3c 31 2c 31 2c |0.4,0,0>|]:[<1,1,|
|00002840| 31 2c 30 3e 5d 3b 20 0a | 64 61 74 61 20 63 6f 6c |1,0>]; .|data col|
|00002850| 6f 75 72 20 63 31 20 3d | 20 5b 3c 30 2e 38 31 30 |our c1 =| [<0.810|
|00002860| 37 39 2c 30 2e 34 30 31 | 32 37 2c 30 2e 38 30 34 |79,0.401|27,0.804|
|00002870| 37 33 39 2c 30 3e 5d 3a | 5b 3c 30 2c 30 2e 34 2c |739,0>]:|[<0,0.4,|
|00002880| 30 2c 30 3e 5d 3a 5b 3c | 31 2c 31 2c 31 2c 30 3e |0,0>]:[<|1,1,1,0>|
|00002890| 5d 3b 20 0a 64 61 74 61 | 20 63 6f 6c 6f 75 72 20 |]; .data| colour |
|000028a0| 63 32 20 3d 20 5b 3c 30 | 2e 37 36 35 32 36 35 2c |c2 = [<0|.765265,|
|000028b0| 30 2e 38 32 37 37 34 31 | 2c 30 2e 35 35 30 33 33 |0.827741|,0.55033|
|000028c0| 32 2c 30 3e 5d 3a 5b 3c | 30 2c 30 2e 34 2c 30 2c |2,0>]:[<|0,0.4,0,|
|000028d0| 30 3e 5d 3a 5b 3c 31 2c | 31 2c 31 2c 30 3e 5d 3b |0>]:[<1,|1,1,0>];|
|000028e0| 20 0a 64 61 74 61 20 63 | 6f 6c 6f 75 72 20 63 33 | .data c|olour c3|
|000028f0| 20 3d 20 5b 3c 30 2e 36 | 38 30 31 33 34 2c 30 2e | = [<0.6|80134,0.|
|00002900| 36 30 37 39 38 2c 30 2e | 32 36 33 37 39 37 2c 30 |60798,0.|263797,0|
|00002910| 3e 5d 3a 5b 3c 30 2c 30 | 2e 34 2c 30 2c 30 3e 5d |>]:[<0,0|.4,0,0>]|
|00002920| 3a 5b 3c 31 2c 31 2c 31 | 2c 30 3e 5d 3b 20 0a 64 |:[<1,1,1|,0>]; .d|
|00002930| 61 74 61 20 6e 75 6d 20 | 64 65 6c 74 61 31 20 3d |ata num |delta1 =|
|00002940| 20 5b 30 2e 36 38 31 32 | 35 38 5d 3a 5b 30 2e 30 | [0.6812|58]:[0.0|
|00002950| 31 5d 3a 5b 31 5d 3b 20 | 0a 64 61 74 61 20 6e 75 |1]:[1]; |.data nu|
|00002960| 6d 20 64 65 6c 74 61 32 | 20 3d 20 5b 30 2e 35 36 |m delta2| = [0.56|
|00002970| 31 36 38 32 5d 3a 5b 30 | 2e 30 31 5d 3a 5b 31 5d |1682]:[0|.01]:[1]|
|00002980| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 64 65 6c 74 |; .data |num delt|
|00002990| 61 33 20 3d 20 5b 30 2e | 31 32 31 37 5d 3a 5b 30 |a3 = [0.|1217]:[0|
|000029a0| 2e 30 31 5d 3a 5b 31 5d | 3b 20 0a 69 6e 69 74 5f |.01]:[1]|; .init_|
|000029b0| 63 73 70 61 63 65 28 69 | 6e 64 65 78 2c 63 30 29 |cspace(i|ndex,c0)|
|000029c0| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|000029d0| 69 6e 64 65 78 2c 64 65 | 6c 74 61 31 2c 63 31 29 |index,de|lta1,c1)|
|000029e0| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|000029f0| 69 6e 64 65 78 2c 64 65 | 6c 74 61 32 2c 63 32 29 |index,de|lta2,c2)|
|00002a00| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|00002a10| 69 6e 64 65 78 2c 64 65 | 6c 74 61 33 2c 63 33 29 |index,de|lta3,c3)|
|00002a20| 3b 0a 7d 0a 7d 20 0a 7d | 20 69 6e 64 69 20 64 61 |;.}.} .}| indi da|
|00002a30| 6e 63 65 72 20 7b 0a 2f | 2f 20 42 61 73 65 49 6e |ncer {./|/ BaseIn|
|00002a40| 64 69 20 61 74 74 72 69 | 62 75 74 65 73 0a 2f 2f |di attri|butes.//|
|00002a50| 20 44 61 6e 63 65 72 49 | 6e 64 69 41 74 74 72 69 | DancerI|ndiAttri|
|00002a60| 62 75 74 65 73 0a 67 65 | 6e 6f 6d 65 20 64 61 6e |butes.ge|nome dan|
|00002a70| 63 65 72 20 7b 0a 2f 2f | 20 42 61 73 65 47 65 6e |cer {.//| BaseGen|
|00002a80| 6f 6d 65 20 61 74 74 72 | 69 62 75 74 65 73 0a 2f |ome attr|ibutes./|
|00002a90| 2f 20 44 61 6e 63 65 72 | 47 65 6e 6f 6d 65 20 61 |/ Dancer|Genome a|
|00002aa0| 74 74 72 69 62 75 74 65 | 73 0a 70 72 6f 67 0a 66 |ttribute|s.prog.f|
|00002ab0| 75 6e 63 20 76 6f 69 64 | 20 6d 61 69 6e 28 29 3b |unc void| main();|
|00002ac0| 0a 66 75 6e 63 20 76 6f | 69 64 20 73 74 61 6c 6b |.func vo|id stalk|
|00002ad0| 28 29 3b 0a 66 75 6e 63 | 20 76 6f 69 64 20 70 65 |();.func| void pe|
|00002ae0| 74 61 6c 28 29 3b 0a 66 | 75 6e 63 20 76 6f 69 64 |tal();.f|unc void|
|00002af0| 20 62 75 69 6c 64 43 53 | 70 61 63 65 41 28 20 69 | buildCS|paceA( i|
|00002b00| 6e 74 20 69 6e 64 65 78 | 20 29 3b 0a 66 75 6e 63 |nt index| );.func|
|00002b10| 20 76 6f 69 64 20 62 75 | 69 6c 64 43 53 70 61 63 | void bu|ildCSpac|
|00002b20| 65 42 28 20 69 6e 74 20 | 69 6e 64 65 78 20 29 3b |eB( int |index );|
|00002b30| 0a 66 75 6e 63 20 76 6f | 69 64 20 62 75 69 6c 64 |.func vo|id build|
|00002b40| 43 53 70 61 63 65 43 28 | 20 69 6e 74 20 69 6e 64 |CSpaceC(| int ind|
|00002b50| 65 78 20 29 3b 0a 66 75 | 6e 63 20 76 6f 69 64 20 |ex );.fu|nc void |
|00002b60| 62 75 69 6c 64 43 53 70 | 61 63 65 44 28 20 69 6e |buildCSp|aceD( in|
|00002b70| 74 20 69 6e 64 65 78 20 | 29 3b 0a 64 61 74 61 20 |t index |);.data |
|00002b80| 6e 75 6d 20 6f 70 65 6e | 20 3d 20 5b 30 2e 37 37 |num open| = [0.77|
|00002b90| 38 36 39 36 5d 3a 5b 30 | 5d 3a 5b 31 5d 3b 20 0a |8696]:[0|]:[1]; .|
|00002ba0| 66 75 6e 63 20 76 6f 69 | 64 20 6d 61 69 6e 28 29 |func voi|d main()|
|00002bb0| 20 7b 0a 64 61 74 61 20 | 6e 75 6d 20 6d 61 74 65 | {.data |num mate|
|00002bc0| 72 69 61 6c 5f 73 68 69 | 6e 65 20 3d 20 5b 39 2e |rial_shi|ne = [9.|
|00002bd0| 35 32 39 35 39 5d 3a 5b | 30 5d 3a 5b 31 30 5d 3b |52959]:[|0]:[10];|
|00002be0| 20 0a 64 61 74 61 20 6e | 75 6d 20 6d 61 74 65 72 | .data n|um mater|
|00002bf0| 69 61 6c 5f 73 68 61 72 | 70 20 3d 20 5b 32 30 2e |ial_shar|p = [20.|
|00002c00| 33 31 36 37 5d 3a 5b 30 | 5d 3a 5b 31 30 30 5d 3b |3167]:[0|]:[100];|
|00002c10| 20 0a 73 65 74 5f 73 68 | 69 6e 65 28 6d 61 74 65 | .set_sh|ine(mate|
|00002c20| 72 69 61 6c 5f 73 68 69 | 6e 65 29 3b 0a 73 65 74 |rial_shi|ne);.set|
|00002c30| 5f 73 68 61 72 70 28 6d | 61 74 65 72 69 61 6c 5f |_sharp(m|aterial_|
|00002c40| 73 68 61 72 70 29 3b 0a | 62 75 69 6c 64 43 53 70 |sharp);.|buildCSp|
|00002c50| 61 63 65 41 28 5b 30 5d | 29 3b 0a 62 75 69 6c 64 |aceA([0]|);.build|
|00002c60| 43 53 70 61 63 65 42 28 | 5b 31 5d 29 3b 0a 62 75 |CSpaceB(|[1]);.bu|
|00002c70| 69 6c 64 43 53 70 61 63 | 65 43 28 5b 32 5d 29 3b |ildCSpac|eC([2]);|
|00002c80| 0a 62 75 69 6c 64 43 53 | 70 61 63 65 44 28 5b 33 |.buildCS|paceD([3|
|00002c90| 5d 29 3b 0a 64 61 74 61 | 20 6e 75 6d 20 66 73 69 |]);.data| num fsi|
|00002ca0| 7a 65 20 3d 20 5b 30 2e | 39 5d 3b 20 0a 73 74 61 |ze = [0.|9]; .sta|
|00002cb0| 6c 6b 28 29 3b 0a 64 61 | 74 61 20 6e 75 6d 20 70 |lk();.da|ta num p|
|00002cc0| 65 74 61 6c 5f 66 77 64 | 20 3d 20 5b 2d 35 2e 39 |etal_fwd| = [-5.9|
|00002cd0| 37 34 32 37 5d 3a 5b 2d | 32 30 5d 3a 5b 32 30 5d |7427]:[-|20]:[20]|
|00002ce0| 3b 20 0a 66 6f 72 77 61 | 72 64 28 28 70 65 74 61 |; .forwa|rd((peta|
|00002cf0| 6c 5f 66 77 64 2a 6f 70 | 65 6e 29 29 3b 0a 70 69 |l_fwd*op|en));.pi|
|00002d00| 74 63 68 28 28 5b 33 2e | 31 34 31 35 39 5d 2f 5b |tch(([3.|14159]/[|
|00002d10| 32 5d 29 29 3b 0a 70 65 | 74 61 6c 28 29 3b 0a 79 |2]));.pe|tal();.y|
|00002d20| 61 77 28 28 28 5b 32 5d | 2a 5b 33 2e 31 34 31 35 |aw((([2]|*[3.1415|
|00002d30| 39 5d 29 2f 5b 35 5d 29 | 29 3b 0a 70 65 74 61 6c |9])/[5])|);.petal|
|00002d40| 28 29 3b 0a 79 61 77 28 | 28 28 5b 32 5d 2a 5b 33 |();.yaw(|(([2]*[3|
|00002d50| 2e 31 34 31 35 39 5d 29 | 2f 5b 35 5d 29 29 3b 0a |.14159])|/[5]));.|
|00002d60| 70 65 74 61 6c 28 29 3b | 0a 79 61 77 28 28 28 5b |petal();|.yaw((([|
|00002d70| 32 5d 2a 5b 33 2e 31 34 | 31 35 39 5d 29 2f 5b 35 |2]*[3.14|159])/[5|
|00002d80| 5d 29 29 3b 0a 70 65 74 | 61 6c 28 29 3b 0a 79 61 |]));.pet|al();.ya|
|00002d90| 77 28 28 28 5b 32 5d 2a | 5b 33 2e 31 34 31 35 39 |w((([2]*|[3.14159|
|00002da0| 5d 29 2f 5b 35 5d 29 29 | 3b 0a 70 65 74 61 6c 28 |])/[5]))|;.petal(|
|00002db0| 29 3b 0a 7d 0a 66 75 6e | 63 20 76 6f 69 64 20 73 |);.}.fun|c void s|
|00002dc0| 74 61 6c 6b 28 29 20 7b | 0a 64 61 74 61 20 6e 75 |talk() {|.data nu|
|00002dd0| 6d 20 73 70 68 65 72 65 | 6e 65 73 73 20 3d 20 6f |m sphere|ness = o|
|00002de0| 70 65 6e 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 73 |pen; .da|ta num s|
|00002df0| 68 65 65 74 6e 65 73 73 | 20 3d 20 28 5b 31 5d 2d |heetness| = ([1]-|
|00002e00| 73 70 68 65 72 65 6e 65 | 73 73 29 3b 20 0a 64 61 |spherene|ss); .da|
|00002e10| 74 61 20 69 6e 74 20 6d | 61 78 72 69 6e 67 73 20 |ta int m|axrings |
|00002e20| 3d 20 5b 38 5d 3b 20 0a | 64 61 74 61 20 6e 75 6d |= [8]; .|data num|
|00002e30| 20 61 6c 70 68 61 20 3d | 20 5b 30 5d 3b 20 0a 64 | alpha =| [0]; .d|
|00002e40| 61 74 61 20 6e 75 6d 20 | 64 65 6c 74 61 61 6c 70 |ata num |deltaalp|
|00002e50| 68 61 20 3d 20 28 5b 33 | 2e 31 34 31 35 39 5d 2f |ha = ([3|.14159]/|
|00002e60| 69 74 6f 6e 28 6d 61 78 | 72 69 6e 67 73 29 29 3b |iton(max|rings));|
|00002e70| 20 0a 73 65 74 5f 74 65 | 78 74 75 72 65 28 5b 30 | .set_te|xture([0|
|00002e80| 5d 29 3b 0a 64 61 74 61 | 20 6e 75 6d 20 73 70 68 |]);.data| num sph|
|00002e90| 65 72 65 5f 65 78 70 61 | 6e 64 65 64 20 3d 20 5b |ere_expa|nded = [|
|00002ea0| 2d 30 2e 36 39 39 37 33 | 32 5d 3a 5b 2d 31 30 5d |-0.69973|2]:[-10]|
|00002eb0| 3a 5b 31 35 5d 3b 20 0a | 69 66 28 6c 65 73 73 28 |:[15]; .|if(less(|
|00002ec0| 73 70 68 65 72 65 5f 65 | 78 70 61 6e 64 65 64 2c |sphere_e|xpanded,|
|00002ed0| 5b 31 5d 29 29 20 7b 0a | 73 70 68 65 72 65 5f 65 |[1])) {.|sphere_e|
|00002ee0| 78 70 61 6e 64 65 64 20 | 3d 20 5b 31 5d 3b 0a 7d |xpanded |= [1];.}|
|00002ef0| 20 0a 66 6f 72 28 20 69 | 6e 74 20 72 69 6e 67 20 | .for( i|nt ring |
|00002f00| 3d 20 5b 30 5d 3b 20 69 | 6c 65 73 73 28 72 69 6e |= [0]; i|less(rin|
|00002f10| 67 2c 6d 61 78 72 69 6e | 67 73 29 3b 20 28 72 69 |g,maxrin|gs); (ri|
|00002f20| 6e 67 2b 5b 31 5d 29 20 | 29 20 7b 0a 64 61 74 61 |ng+[1]) |) {.data|
|00002f30| 20 6e 75 6d 20 6c 6f 63 | 75 73 20 3d 20 28 69 74 | num loc|us = (it|
|00002f40| 6f 6e 28 72 69 6e 67 29 | 2f 69 74 6f 6e 28 6d 61 |on(ring)|/iton(ma|
|00002f50| 78 72 69 6e 67 73 29 29 | 3b 20 0a 73 65 74 5f 63 |xrings))|; .set_c|
|00002f60| 6f 6c 6f 75 72 28 63 73 | 70 61 63 65 28 5b 32 5d |olour(cs|pace([2]|
|00002f70| 2c 6c 6f 63 75 73 29 29 | 3b 0a 64 61 74 61 20 6e |,locus))|;.data n|
|00002f80| 75 6d 20 73 70 68 65 72 | 65 7a 20 3d 20 28 63 6f |um spher|ez = (co|
|00002f90| 73 28 61 6c 70 68 61 29 | 2a 73 70 68 65 72 65 5f |s(alpha)|*sphere_|
|00002fa0| 65 78 70 61 6e 64 65 64 | 29 3b 20 0a 64 61 74 61 |expanded|); .data|
|00002fb0| 20 6e 75 6d 20 73 70 68 | 65 72 65 72 61 64 69 75 | num sph|ereradiu|
|00002fc0| 73 20 3d 20 28 73 69 6e | 28 61 6c 70 68 61 29 2a |s = (sin|(alpha)*|
|00002fd0| 73 70 68 65 72 65 5f 65 | 78 70 61 6e 64 65 64 29 |sphere_e|xpanded)|
|00002fe0| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 63 69 72 63 |; .data |num circ|
|00002ff0| 75 6d 20 3d 20 28 28 5b | 32 5d 2a 5b 33 2e 31 34 |um = (([|2]*[3.14|
|00003000| 31 35 39 5d 29 2a 69 74 | 6f 6e 28 72 69 6e 67 29 |159])*it|on(ring)|
|00003010| 29 3b 20 0a 64 61 74 61 | 20 69 6e 74 20 73 65 67 |); .data| int seg|
|00003020| 73 20 3d 20 6e 74 6f 69 | 28 63 69 72 63 75 6d 29 |s = ntoi|(circum)|
|00003030| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 64 65 6c 74 |; .data |num delt|
|00003040| 61 74 68 65 74 61 20 3d | 20 28 28 5b 32 5d 2a 5b |atheta =| (([2]*[|
|00003050| 33 2e 31 34 31 35 39 5d | 29 2f 63 69 72 63 75 6d |3.14159]|)/circum|
|00003060| 29 3b 20 0a 64 61 74 61 | 20 6e 75 6d 20 74 68 65 |); .data| num the|
|00003070| 74 61 20 3d 20 5b 30 5d | 3b 20 0a 66 6f 72 28 20 |ta = [0]|; .for( |
|00003080| 69 6e 74 20 73 65 67 20 | 3d 20 5b 30 5d 3b 20 69 |int seg |= [0]; i|
|00003090| 6c 65 73 73 28 73 65 67 | 2c 73 65 67 73 29 3b 20 |less(seg|,segs); |
|000030a0| 28 73 65 67 2b 5b 31 5d | 29 20 29 20 7b 0a 64 61 |(seg+[1]|) ) {.da|
|000030b0| 74 61 20 6e 75 6d 20 6e | 6f 72 6d 78 20 3d 20 63 |ta num n|ormx = c|
|000030c0| 6f 73 28 74 68 65 74 61 | 29 3b 20 0a 64 61 74 61 |os(theta|); .data|
|000030d0| 20 6e 75 6d 20 6e 6f 72 | 6d 79 20 3d 20 73 69 6e | num nor|my = sin|
|000030e0| 28 74 68 65 74 61 29 3b | 20 0a 64 61 74 61 20 6e |(theta);| .data n|
|000030f0| 75 6d 20 73 68 65 65 74 | 72 61 64 69 75 73 20 3d |um sheet|radius =|
|00003100| 20 69 74 6f 6e 28 72 69 | 6e 67 29 3b 20 0a 64 61 | iton(ri|ng); .da|
|00003110| 74 61 20 6e 75 6d 20 74 | 6f 74 61 6c 72 61 64 69 |ta num t|otalradi|
|00003120| 75 73 20 3d 20 28 28 73 | 68 65 65 74 6e 65 73 73 |us = ((s|heetness|
|00003130| 2a 73 68 65 65 74 72 61 | 64 69 75 73 29 2b 28 73 |*sheetra|dius)+(s|
|00003140| 70 68 65 72 65 6e 65 73 | 73 2a 73 70 68 65 72 65 |pherenes|s*sphere|
|00003150| 72 61 64 69 75 73 29 29 | 3b 20 0a 64 61 74 61 20 |radius))|; .data |
|00003160| 6e 75 6d 20 78 20 3d 20 | 28 74 6f 74 61 6c 72 61 |num x = |(totalra|
|00003170| 64 69 75 73 2a 6e 6f 72 | 6d 78 29 3b 20 0a 64 61 |dius*nor|mx); .da|
|00003180| 74 61 20 6e 75 6d 20 79 | 20 3d 20 28 74 6f 74 61 |ta num y| = (tota|
|00003190| 6c 72 61 64 69 75 73 2a | 6e 6f 72 6d 79 29 3b 20 |lradius*|normy); |
|000031a0| 0a 64 61 74 61 20 6e 75 | 6d 20 7a 20 3d 20 28 73 |.data nu|m z = (s|
|000031b0| 70 68 65 72 65 6e 65 73 | 73 2a 73 70 68 65 72 65 |pherenes|s*sphere|
|000031c0| 7a 29 3b 20 0a 70 75 73 | 68 28 29 3b 0a 64 61 74 |z); .pus|h();.dat|
|000031d0| 61 20 6e 75 6d 20 73 70 | 68 65 72 65 73 69 7a 65 |a num sp|heresize|
|000031e0| 20 3d 20 5b 30 2e 36 37 | 38 32 31 36 5d 3a 5b 30 | = [0.67|8216]:[0|
|000031f0| 2e 31 5d 3a 5b 31 5d 3b | 20 0a 65 67 67 5f 75 73 |.1]:[1];| .egg_us|
|00003200| 63 61 6c 65 28 73 70 68 | 65 72 65 73 69 7a 65 29 |cale(sph|eresize)|
|00003210| 3b 0a 6d 6f 76 65 28 76 | 33 6d 61 6b 65 28 78 2c |;.move(v|3make(x,|
|00003220| 79 2c 7a 29 29 3b 0a 73 | 65 74 5f 70 72 69 6d 28 |y,z));.s|et_prim(|
|00003230| 5b 33 5d 29 3b 0a 6c 61 | 79 28 29 3b 0a 70 6f 70 |[3]);.la|y();.pop|
|00003240| 28 29 3b 0a 74 68 65 74 | 61 20 3d 20 28 74 68 65 |();.thet|a = (the|
|00003250| 74 61 2b 64 65 6c 74 61 | 74 68 65 74 61 29 3b 0a |ta+delta|theta);.|
|00003260| 7d 20 0a 61 6c 70 68 61 | 20 3d 20 28 61 6c 70 68 |} .alpha| = (alph|
|00003270| 61 2b 64 65 6c 74 61 61 | 6c 70 68 61 29 3b 0a 7d |a+deltaa|lpha);.}|
|00003280| 20 0a 7d 0a 66 75 6e 63 | 20 76 6f 69 64 20 70 65 | .}.func| void pe|
|00003290| 74 61 6c 28 29 20 7b 0a | 70 75 73 68 28 29 3b 0a |tal() {.|push();.|
|000032a0| 66 6f 72 77 61 72 64 28 | 5b 32 2e 35 5d 29 3b 0a |forward(|[2.5]);.|
|000032b0| 70 69 74 63 68 28 28 2d | 5b 33 2e 31 34 31 35 39 |pitch((-|[3.14159|
|000032c0| 5d 2f 5b 35 5d 29 29 3b | 0a 79 61 77 28 28 2d 5b |]/[5]));|.yaw((-[|
|000032d0| 33 2e 31 34 31 35 39 5d | 2f 5b 34 5d 29 29 3b 0a |3.14159]|/[4]));.|
|000032e0| 72 6f 6c 6c 28 28 2d 5b | 33 2e 31 34 31 35 39 5d |roll((-[|3.14159]|
|000032f0| 2f 5b 36 5d 29 29 3b 0a | 73 65 74 5f 70 72 69 6d |/[6]));.|set_prim|
|00003300| 28 5b 33 5d 29 3b 0a 64 | 61 74 61 20 69 6e 74 20 |([3]);.d|ata int |
|00003310| 73 65 67 73 20 3d 20 5b | 33 30 5d 3b 20 0a 73 65 |segs = [|30]; .se|
|00003320| 74 5f 74 65 78 74 75 72 | 65 28 5b 31 5d 29 3b 0a |t_textur|e([1]);.|
|00003330| 66 6f 72 28 20 69 6e 74 | 20 69 20 3d 20 5b 31 5d |for( int| i = [1]|
|00003340| 3b 20 69 6c 65 73 73 28 | 69 2c 73 65 67 73 29 3b |; iless(|i,segs);|
|00003350| 20 28 69 2b 5b 31 5d 29 | 20 29 20 7b 0a 64 61 74 | (i+[1])| ) {.dat|
|00003360| 61 20 6e 75 6d 20 61 6d | 70 6c 69 74 75 64 65 20 |a num am|plitude |
|00003370| 3d 20 73 69 6e 28 28 28 | 5b 33 2e 31 34 31 35 39 |= sin(((|[3.14159|
|00003380| 5d 2a 69 74 6f 6e 28 69 | 29 29 2f 69 74 6f 6e 28 |]*iton(i|))/iton(|
|00003390| 73 65 67 73 29 29 29 3b | 20 0a 73 65 74 5f 63 6f |segs)));| .set_co|
|000033a0| 6c 6f 75 72 28 63 73 70 | 61 63 65 28 5b 31 5d 2c |lour(csp|ace([1],|
|000033b0| 61 6d 70 6c 69 74 75 64 | 65 29 29 3b 0a 79 61 77 |amplitud|e));.yaw|
|000033c0| 28 28 5b 33 2e 31 34 31 | 35 39 5d 2f 69 74 6f 6e |(([3.141|59]/iton|
|000033d0| 28 73 65 67 73 29 29 29 | 3b 0a 70 75 73 68 28 29 |(segs)))|;.push()|
|000033e0| 3b 0a 66 6f 72 77 61 72 | 64 28 5b 30 2e 31 5d 29 |;.forwar|d([0.1])|
|000033f0| 3b 0a 64 61 74 61 20 6e | 75 6d 20 66 6c 65 78 20 |;.data n|um flex |
|00003400| 3d 20 5b 2d 32 2e 32 39 | 32 32 35 5d 3a 5b 2d 32 |= [-2.29|225]:[-2|
|00003410| 2e 35 5d 3a 5b 32 2e 35 | 5d 3b 20 0a 65 67 67 5f |.5]:[2.5|]; .egg_|
|00003420| 73 63 61 6c 65 28 76 33 | 6d 61 6b 65 28 6f 70 65 |scale(v3|make(ope|
|00003430| 6e 2c 6f 70 65 6e 2c 28 | 28 6f 70 65 6e 2a 5b 36 |n,open,(|(open*[6|
|00003440| 5d 29 2a 28 61 6d 70 6c | 69 74 75 64 65 2b 5b 31 |])*(ampl|itude+[1|
|00003450| 5d 29 29 29 29 3b 0a 70 | 69 74 63 68 28 28 28 28 |]))));.p|itch((((|
|00003460| 5b 33 2e 31 34 31 35 39 | 5d 2f 5b 32 5d 29 2a 61 |[3.14159|]/[2])*a|
|00003470| 6d 70 6c 69 74 75 64 65 | 29 2a 66 6c 65 78 29 29 |mplitude|)*flex))|
|00003480| 3b 0a 6c 61 79 28 29 3b | 0a 70 6f 70 28 29 3b 0a |;.lay();|.pop();.|
|00003490| 79 61 77 28 28 5b 33 2e | 31 34 31 35 39 5d 2f 5b |yaw(([3.|14159]/[|
|000034a0| 32 5d 29 29 3b 0a 66 6f | 72 77 61 72 64 28 28 5b |2]));.fo|rward(([|
|000034b0| 30 2e 34 5d 2a 6f 70 65 | 6e 29 29 3b 0a 79 61 77 |0.4]*ope|n));.yaw|
|000034c0| 28 28 2d 5b 33 2e 31 34 | 31 35 39 5d 2f 5b 32 5d |((-[3.14|159]/[2]|
|000034d0| 29 29 3b 0a 7d 20 0a 70 | 6f 70 28 29 3b 0a 7d 0a |));.} .p|op();.}.|
|000034e0| 66 75 6e 63 20 76 6f 69 | 64 20 62 75 69 6c 64 43 |func voi|d buildC|
|000034f0| 53 70 61 63 65 41 28 20 | 69 6e 74 20 69 6e 64 65 |SpaceA( |int inde|
|00003500| 78 20 29 20 7b 0a 64 61 | 74 61 20 63 6f 6c 6f 75 |x ) {.da|ta colou|
|00003510| 72 20 63 30 20 3d 20 5b | 3c 30 2e 34 31 35 36 38 |r c0 = [|<0.41568|
|00003520| 37 2c 30 2e 35 30 33 35 | 37 32 2c 30 2e 33 34 32 |7,0.5035|72,0.342|
|00003530| 36 32 37 2c 30 3e 5d 3a | 5b 3c 30 2c 30 2e 34 2c |627,0>]:|[<0,0.4,|
|00003540| 30 2c 30 3e 5d 3a 5b 3c | 31 2c 31 2c 31 2c 30 3e |0,0>]:[<|1,1,1,0>|
|00003550| 5d 3b 20 0a 64 61 74 61 | 20 63 6f 6c 6f 75 72 20 |]; .data| colour |
|00003560| 63 31 20 3d 20 5b 3c 30 | 2e 36 35 30 39 32 39 2c |c1 = [<0|.650929,|
|00003570| 30 2e 35 32 33 38 38 32 | 2c 30 2e 36 35 34 33 38 |0.523882|,0.65438|
|00003580| 39 2c 30 3e 5d 3a 5b 3c | 30 2c 30 2e 34 2c 30 2c |9,0>]:[<|0,0.4,0,|
|00003590| 30 3e 5d 3a 5b 3c 31 2c | 31 2c 31 2c 30 3e 5d 3b |0>]:[<1,|1,1,0>];|
|000035a0| 20 0a 64 61 74 61 20 63 | 6f 6c 6f 75 72 20 63 32 | .data c|olour c2|
|000035b0| 20 3d 20 5b 3c 30 2e 38 | 35 31 35 32 37 2c 30 2e | = [<0.8|51527,0.|
|000035c0| 36 33 35 32 39 32 2c 30 | 2e 33 38 33 37 34 39 2c |635292,0|.383749,|
|000035d0| 30 3e 5d 3a 5b 3c 30 2c | 30 2e 34 2c 30 2c 30 3e |0>]:[<0,|0.4,0,0>|
|000035e0| 5d 3a 5b 3c 31 2c 31 2c | 31 2c 30 3e 5d 3b 20 0a |]:[<1,1,|1,0>]; .|
|000035f0| 64 61 74 61 20 63 6f 6c | 6f 75 72 20 63 33 20 3d |data col|our c3 =|
|00003600| 20 5b 3c 30 2e 34 33 36 | 38 35 31 2c 30 2e 38 37 | [<0.436|851,0.87|
|00003610| 33 32 39 36 2c 30 2e 35 | 37 30 37 32 2c 30 3e 5d |3296,0.5|7072,0>]|
|00003620| 3a 5b 3c 30 2c 30 2e 34 | 2c 30 2c 30 3e 5d 3a 5b |:[<0,0.4|,0,0>]:[|
|00003630| 3c 31 2c 31 2c 31 2c 30 | 3e 5d 3b 20 0a 64 61 74 |<1,1,1,0|>]; .dat|
|00003640| 61 20 6e 75 6d 20 64 65 | 6c 74 61 31 20 3d 20 5b |a num de|lta1 = [|
|00003650| 30 2e 39 35 36 35 36 36 | 5d 3a 5b 30 2e 30 31 5d |0.956566|]:[0.01]|
|00003660| 3a 5b 31 5d 3b 20 0a 64 | 61 74 61 20 6e 75 6d 20 |:[1]; .d|ata num |
|00003670| 64 65 6c 74 61 32 20 3d | 20 5b 30 2e 38 30 33 30 |delta2 =| [0.8030|
|00003680| 33 38 5d 3a 5b 30 2e 30 | 31 5d 3a 5b 31 5d 3b 20 |38]:[0.0|1]:[1]; |
|00003690| 0a 64 61 74 61 20 6e 75 | 6d 20 64 65 6c 74 61 33 |.data nu|m delta3|
|000036a0| 20 3d 20 5b 30 2e 37 39 | 39 34 36 33 5d 3a 5b 30 | = [0.79|9463]:[0|
|000036b0| 2e 30 31 5d 3a 5b 31 5d | 3b 20 0a 69 6e 69 74 5f |.01]:[1]|; .init_|
|000036c0| 63 73 70 61 63 65 28 69 | 6e 64 65 78 2c 63 30 29 |cspace(i|ndex,c0)|
|000036d0| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|000036e0| 69 6e 64 65 78 2c 64 65 | 6c 74 61 31 2c 63 31 29 |index,de|lta1,c1)|
|000036f0| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|00003700| 69 6e 64 65 78 2c 64 65 | 6c 74 61 32 2c 63 32 29 |index,de|lta2,c2)|
|00003710| 3b 0a 65 78 74 65 6e 64 | 5f 63 73 70 61 63 65 28 |;.extend|_cspace(|
|00003720| 69 6e 64 65 78 2c 64 65 | 6c 74 61 33 2c 63 33 29 |index,de|lta3,c3)|
|00003730| 3b 0a 7d 0a 66 75 6e 63 | 20 76 6f 69 64 20 62 75 |;.}.func| void bu|
|00003740| 69 6c 64 43 53 70 61 63 | 65 42 28 20 69 6e 74 20 |ildCSpac|eB( int |
|00003750| 69 6e 64 65 78 20 29 20 | 7b 0a 64 61 74 61 20 63 |index ) |{.data c|
|00003760| 6f 6c 6f 75 72 20 63 30 | 20 3d 20 5b 3c 30 2e 32 |olour c0| = [<0.2|
|00003770| 32 31 31 39 33 2c 30 2e | 38 38 33 37 31 2c 30 2e |21193,0.|88371,0.|
|00003780| 31 35 38 37 38 33 2c 30 | 3e 5d 3a 5b 3c 30 2c 30 |158783,0|>]:[<0,0|
|00003790| 2e 34 2c 30 2c 30 3e 5d | 3a 5b 3c 31 2c 31 2c 31 |.4,0,0>]|:[<1,1,1|
|000037a0| 2c 30 3e 5d 3b 20 0a 64 | 61 74 61 20 63 6f 6c 6f |,0>]; .d|ata colo|
|000037b0| 75 72 20 63 31 20 3d 20 | 5b 3c 30 2e 30 39 30 30 |ur c1 = |[<0.0900|
|000037c0| 39 36 37 2c 30 2e 39 32 | 31 32 37 36 2c 30 2e 37 |967,0.92|1276,0.7|
|000037d0| 30 37 30 35 34 2c 30 3e | 5d 3a 5b 3c 30 2c 30 2e |07054,0>|]:[<0,0.|
|000037e0| 34 2c 30 2c 30 3e 5d 3a | 5b 3c 31 2c 31 2c 31 2c |4,0,0>]:|[<1,1,1,|
|000037f0| 30 3e 5d 3b 20 0a 64 61 | 74 61 20 63 6f 6c 6f 75 |0>]; .da|ta colou|
|00003800| 72 20 63 32 20 3d 20 5b | 3c 30 2e 36 35 31 33 35 |r c2 = [|<0.65135|
|00003810| 34 2c 30 2e 35 36 36 31 | 36 35 2c 30 2e 36 30 39 |4,0.5661|65,0.609|
|00003820| 36 37 37 2c 30 3e 5d 3a | 5b 3c 30 2c 30 2e 34 2c |677,0>]:|[<0,0.4,|
|00003830| 30 2c 30 3e 5d 3a 5b 3c | 31 2c 31 2c 31 2c 30 3e |0,0>]:[<|1,1,1,0>|
|00003840| 5d 3b 20 0a 64 61 74 61 | 20 63 6f 6c 6f 75 72 20 |]; .data| colour |
|00003850| 63 33 20 3d 20 5b 3c 30 | 2e 37 34 39 38 31 38 2c |c3 = [<0|.749818,|
|00003860| 30 2e 37 37 33 35 36 39 | 2c 30 2e 32 33 31 37 32 |0.773569|,0.23172|
|00003870| 33 2c 30 3e 5d 3a 5b 3c | 30 2c 30 2e 34 2c 30 2c |3,0>]:[<|0,0.4,0,|
|00003880| 30 3e 5d 3a 5b 3c 31 2c | 31 2c 31 2c 30 3e 5d 3b |0>]:[<1,|1,1,0>];|
|00003890| 20 0a 64 61 74 61 20 6e | 75 6d 20 64 65 6c 74 61 | .data n|um delta|
|000038a0| 31 20 3d 20 5b 30 2e 37 | 33 38 39 36 33 5d 3a 5b |1 = [0.7|38963]:[|
|000038b0| 30 2e 30 31 5d 3a 5b 31 | 5d 3b 20 0a 64 61 74 61 |0.01]:[1|]; .data|
|000038c0| 20 6e 75 6d 20 64 65 6c | 74 61 32 20 3d 20 5b 30 | num del|ta2 = [0|
|000038d0| 2e 36 35 35 34 30 32 5d | 3a 5b 30 2e 30 31 5d 3a |.655402]|:[0.01]:|
|000038e0| 5b 31 5d 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 64 |[1]; .da|ta num d|
|000038f0| 65 6c 74 61 33 20 3d 20 | 5b 30 2e 33 34 37 31 30 |elta3 = |[0.34710|
|00003900| 38 5d 3a 5b 30 2e 30 31 | 5d 3a 5b 31 5d 3b 20 0a |8]:[0.01|]:[1]; .|
|00003910| 69 6e 69 74 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |init_csp|ace(inde|
|00003920| 78 2c 63 30 29 3b 0a 65 | 78 74 65 6e 64 5f 63 73 |x,c0);.e|xtend_cs|
|00003930| 70 61 63 65 28 69 6e 64 | 65 78 2c 64 65 6c 74 61 |pace(ind|ex,delta|
|00003940| 31 2c 63 31 29 3b 0a 65 | 78 74 65 6e 64 5f 63 73 |1,c1);.e|xtend_cs|
|00003950| 70 61 63 65 28 69 6e 64 | 65 78 2c 64 65 6c 74 61 |pace(ind|ex,delta|
|00003960| 32 2c 63 32 29 3b 0a 65 | 78 74 65 6e 64 5f 63 73 |2,c2);.e|xtend_cs|
|00003970| 70 61 63 65 28 69 6e 64 | 65 78 2c 64 65 6c 74 61 |pace(ind|ex,delta|
|00003980| 33 2c 63 33 29 3b 0a 7d | 0a 66 75 6e 63 20 76 6f |3,c3);.}|.func vo|
|00003990| 69 64 20 62 75 69 6c 64 | 43 53 70 61 63 65 43 28 |id build|CSpaceC(|
|000039a0| 20 69 6e 74 20 69 6e 64 | 65 78 20 29 20 7b 0a 64 | int ind|ex ) {.d|
|000039b0| 61 74 61 20 63 6f 6c 6f | 75 72 20 63 30 20 3d 20 |ata colo|ur c0 = |
|000039c0| 5b 3c 30 2e 38 35 31 31 | 38 36 2c 30 2e 38 38 30 |[<0.8511|86,0.880|
|000039d0| 34 39 36 2c 30 2e 33 37 | 32 38 33 38 2c 30 3e 5d |496,0.37|2838,0>]|
|000039e0| 3a 5b 3c 30 2c 30 2e 34 | 2c 30 2c 30 3e 5d 3a 5b |:[<0,0.4|,0,0>]:[|
|000039f0| 3c 31 2c 31 2c 31 2c 30 | 3e 5d 3b 20 0a 64 61 74 |<1,1,1,0|>]; .dat|
|00003a00| 61 20 63 6f 6c 6f 75 72 | 20 63 31 20 3d 20 5b 3c |a colour| c1 = [<|
|00003a10| 30 2e 39 37 34 30 39 36 | 2c 30 2e 39 35 32 38 33 |0.974096|,0.95283|
|00003a20| 32 2c 30 2e 36 39 38 38 | 35 35 2c 30 3e 5d 3a 5b |2,0.6988|55,0>]:[|
|00003a30| 3c 30 2c 30 2e 34 2c 30 | 2c 30 3e 5d 3a 5b 3c 31 |<0,0.4,0|,0>]:[<1|
|00003a40| 2c 31 2c 31 2c 30 3e 5d | 3b 20 0a 64 61 74 61 20 |,1,1,0>]|; .data |
|00003a50| 63 6f 6c 6f 75 72 20 63 | 32 20 3d 20 5b 3c 30 2e |colour c|2 = [<0.|
|00003a60| 39 32 36 32 31 34 2c 30 | 2e 39 36 30 38 32 36 2c |926214,0|.960826,|
|00003a70| 30 2e 32 30 39 37 35 35 | 2c 30 3e 5d 3a 5b 3c 30 |0.209755|,0>]:[<0|
|00003a80| 2c 30 2e 34 2c 30 2c 30 | 3e 5d 3a 5b 3c 31 2c 31 |,0.4,0,0|>]:[<1,1|
|00003a90| 2c 31 2c 30 3e 5d 3b 20 | 0a 64 61 74 61 20 63 6f |,1,0>]; |.data co|
|00003aa0| 6c 6f 75 72 20 63 33 20 | 3d 20 5b 3c 30 2e 35 38 |lour c3 |= [<0.58|
|00003ab0| 33 33 34 33 2c 30 2e 39 | 30 38 36 39 2c 30 2e 36 |3343,0.9|0869,0.6|
|00003ac0| 38 36 35 31 31 2c 30 3e | 5d 3a 5b 3c 30 2c 30 2e |86511,0>|]:[<0,0.|
|00003ad0| 34 2c 30 2c 30 3e 5d 3a | 5b 3c 31 2c 31 2c 31 2c |4,0,0>]:|[<1,1,1,|
|00003ae0| 30 3e 5d 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 64 |0>]; .da|ta num d|
|00003af0| 65 6c 74 61 31 20 3d 20 | 5b 30 2e 34 35 37 37 33 |elta1 = |[0.45773|
|00003b00| 38 5d 3a 5b 30 2e 30 31 | 5d 3a 5b 31 5d 3b 20 0a |8]:[0.01|]:[1]; .|
|00003b10| 64 61 74 61 20 6e 75 6d | 20 64 65 6c 74 61 32 20 |data num| delta2 |
|00003b20| 3d 20 5b 30 2e 32 38 35 | 39 31 39 5d 3a 5b 30 2e |= [0.285|919]:[0.|
|00003b30| 30 31 5d 3a 5b 31 5d 3b | 20 0a 64 61 74 61 20 6e |01]:[1];| .data n|
|00003b40| 75 6d 20 64 65 6c 74 61 | 33 20 3d 20 5b 30 2e 37 |um delta|3 = [0.7|
|00003b50| 31 38 35 39 33 5d 3a 5b | 30 2e 30 31 5d 3a 5b 31 |18593]:[|0.01]:[1|
|00003b60| 5d 3b 20 0a 69 6e 69 74 | 5f 63 73 70 61 63 65 28 |]; .init|_cspace(|
|00003b70| 69 6e 64 65 78 2c 63 30 | 29 3b 0a 65 78 74 65 6e |index,c0|);.exten|
|00003b80| 64 5f 63 73 70 61 63 65 | 28 69 6e 64 65 78 2c 64 |d_cspace|(index,d|
|00003b90| 65 6c 74 61 31 2c 63 31 | 29 3b 0a 65 78 74 65 6e |elta1,c1|);.exten|
|00003ba0| 64 5f 63 73 70 61 63 65 | 28 69 6e 64 65 78 2c 64 |d_cspace|(index,d|
|00003bb0| 65 6c 74 61 32 2c 63 32 | 29 3b 0a 65 78 74 65 6e |elta2,c2|);.exten|
|00003bc0| 64 5f 63 73 70 61 63 65 | 28 69 6e 64 65 78 2c 64 |d_cspace|(index,d|
|00003bd0| 65 6c 74 61 33 2c 63 33 | 29 3b 0a 7d 0a 66 75 6e |elta3,c3|);.}.fun|
|00003be0| 63 20 76 6f 69 64 20 62 | 75 69 6c 64 43 53 70 61 |c void b|uildCSpa|
|00003bf0| 63 65 44 28 20 69 6e 74 | 20 69 6e 64 65 78 20 29 |ceD( int| index )|
|00003c00| 20 7b 0a 64 61 74 61 20 | 63 6f 6c 6f 75 72 20 63 | {.data |colour c|
|00003c10| 30 20 3d 20 5b 3c 30 2e | 36 33 37 38 34 39 2c 30 |0 = [<0.|637849,0|
|00003c20| 2e 37 37 39 37 38 32 2c | 30 2e 31 37 33 39 30 32 |.779782,|0.173902|
|00003c30| 2c 30 3e 5d 3a 5b 3c 30 | 2c 30 2e 34 2c 30 2c 30 |,0>]:[<0|,0.4,0,0|
|00003c40| 3e 5d 3a 5b 3c 31 2c 31 | 2c 31 2c 30 3e 5d 3b 20 |>]:[<1,1|,1,0>]; |
|00003c50| 0a 64 61 74 61 20 63 6f | 6c 6f 75 72 20 63 31 20 |.data co|lour c1 |
|00003c60| 3d 20 5b 3c 30 2e 34 39 | 31 36 34 34 2c 30 2e 35 |= [<0.49|1644,0.5|
|00003c70| 37 38 36 39 36 2c 30 2e | 34 35 36 36 31 2c 30 3e |78696,0.|45661,0>|
|00003c80| 5d 3a 5b 3c 30 2c 30 2e | 34 2c 30 2c 30 3e 5d 3a |]:[<0,0.|4,0,0>]:|
|00003c90| 5b 3c 31 2c 31 2c 31 2c | 30 3e 5d 3b 20 0a 64 61 |[<1,1,1,|0>]; .da|
|00003ca0| 74 61 20 63 6f 6c 6f 75 | 72 20 63 32 20 3d 20 5b |ta colou|r c2 = [|
|00003cb0| 3c 30 2e 34 37 36 34 37 | 35 2c 30 2e 38 37 37 38 |<0.47647|5,0.8778|
|00003cc0| 38 34 2c 30 2e 34 30 38 | 32 34 39 2c 30 3e 5d 3a |84,0.408|249,0>]:|
|00003cd0| 5b 3c 30 2c 30 2e 34 2c | 30 2c 30 3e 5d 3a 5b 3c |[<0,0.4,|0,0>]:[<|
|00003ce0| 31 2c 31 2c 31 2c 30 3e | 5d 3b 20 0a 64 61 74 61 |1,1,1,0>|]; .data|
|00003cf0| 20 63 6f 6c 6f 75 72 20 | 63 33 20 3d 20 5b 3c 30 | colour |c3 = [<0|
|00003d00| 2e 38 32 32 30 34 2c 30 | 2e 36 38 32 33 30 37 2c |.82204,0|.682307,|
|00003d10| 30 2e 32 32 34 33 35 33 | 2c 30 3e 5d 3a 5b 3c 30 |0.224353|,0>]:[<0|
|00003d20| 2c 30 2e 34 2c 30 2c 30 | 3e 5d 3a 5b 3c 31 2c 31 |,0.4,0,0|>]:[<1,1|
|00003d30| 2c 31 2c 30 3e 5d 3b 20 | 0a 64 61 74 61 20 6e 75 |,1,0>]; |.data nu|
|00003d40| 6d 20 64 65 6c 74 61 31 | 20 3d 20 5b 30 2e 33 31 |m delta1| = [0.31|
|00003d50| 37 37 39 32 5d 3a 5b 30 | 2e 30 31 5d 3a 5b 31 5d |7792]:[0|.01]:[1]|
|00003d60| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 64 65 6c 74 |; .data |num delt|
|00003d70| 61 32 20 3d 20 5b 30 2e | 31 34 31 34 36 39 5d 3a |a2 = [0.|141469]:|
|00003d80| 5b 30 2e 30 31 5d 3a 5b | 31 5d 3b 20 0a 64 61 74 |[0.01]:[|1]; .dat|
|00003d90| 61 20 6e 75 6d 20 64 65 | 6c 74 61 33 20 3d 20 5b |a num de|lta3 = [|
|00003da0| 30 2e 37 36 30 31 39 35 | 5d 3a 5b 30 2e 30 31 5d |0.760195|]:[0.01]|
|00003db0| 3a 5b 31 5d 3b 20 0a 69 | 6e 69 74 5f 63 73 70 61 |:[1]; .i|nit_cspa|
|00003dc0| 63 65 28 69 6e 64 65 78 | 2c 63 30 29 3b 0a 65 78 |ce(index|,c0);.ex|
|00003dd0| 74 65 6e 64 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |tend_csp|ace(inde|
|00003de0| 78 2c 64 65 6c 74 61 31 | 2c 63 31 29 3b 0a 65 78 |x,delta1|,c1);.ex|
|00003df0| 74 65 6e 64 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |tend_csp|ace(inde|
|00003e00| 78 2c 64 65 6c 74 61 32 | 2c 63 32 29 3b 0a 65 78 |x,delta2|,c2);.ex|
|00003e10| 74 65 6e 64 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |tend_csp|ace(inde|
|00003e20| 78 2c 64 65 6c 74 61 33 | 2c 63 33 29 3b 0a 7d 0a |x,delta3|,c3);.}.|
|00003e30| 7d 20 0a 7d 20 69 6e 64 | 69 20 64 61 6e 63 65 72 |} .} ind|i dancer|
|00003e40| 20 7b 0a 2f 2f 20 42 61 | 73 65 49 6e 64 69 20 61 | {.// Ba|seIndi a|
|00003e50| 74 74 72 69 62 75 74 65 | 73 0a 2f 2f 20 44 61 6e |ttribute|s.// Dan|
|00003e60| 63 65 72 49 6e 64 69 41 | 74 74 72 69 62 75 74 65 |cerIndiA|ttribute|
|00003e70| 73 0a 67 65 6e 6f 6d 65 | 20 64 61 6e 63 65 72 20 |s.genome| dancer |
|00003e80| 7b 0a 2f 2f 20 42 61 73 | 65 47 65 6e 6f 6d 65 20 |{.// Bas|eGenome |
|00003e90| 61 74 74 72 69 62 75 74 | 65 73 0a 2f 2f 20 44 61 |attribut|es.// Da|
|00003ea0| 6e 63 65 72 47 65 6e 6f | 6d 65 20 61 74 74 72 69 |ncerGeno|me attri|
|00003eb0| 62 75 74 65 73 0a 70 72 | 6f 67 0a 66 75 6e 63 20 |butes.pr|og.func |
|00003ec0| 76 6f 69 64 20 6d 61 69 | 6e 28 29 3b 0a 66 75 6e |void mai|n();.fun|
|00003ed0| 63 20 76 6f 69 64 20 73 | 74 61 6c 6b 28 29 3b 0a |c void s|talk();.|
|00003ee0| 66 75 6e 63 20 76 6f 69 | 64 20 70 65 74 61 6c 28 |func voi|d petal(|
|00003ef0| 29 3b 0a 66 75 6e 63 20 | 76 6f 69 64 20 62 75 69 |);.func |void bui|
|00003f00| 6c 64 43 53 70 61 63 65 | 41 28 20 69 6e 74 20 69 |ldCSpace|A( int i|
|00003f10| 6e 64 65 78 20 29 3b 0a | 66 75 6e 63 20 76 6f 69 |ndex );.|func voi|
|00003f20| 64 20 62 75 69 6c 64 43 | 53 70 61 63 65 42 28 20 |d buildC|SpaceB( |
|00003f30| 69 6e 74 20 69 6e 64 65 | 78 20 29 3b 0a 66 75 6e |int inde|x );.fun|
|00003f40| 63 20 76 6f 69 64 20 62 | 75 69 6c 64 43 53 70 61 |c void b|uildCSpa|
|00003f50| 63 65 43 28 20 69 6e 74 | 20 69 6e 64 65 78 20 29 |ceC( int| index )|
|00003f60| 3b 0a 66 75 6e 63 20 76 | 6f 69 64 20 62 75 69 6c |;.func v|oid buil|
|00003f70| 64 43 53 70 61 63 65 44 | 28 20 69 6e 74 20 69 6e |dCSpaceD|( int in|
|00003f80| 64 65 78 20 29 3b 0a 64 | 61 74 61 20 6e 75 6d 20 |dex );.d|ata num |
|00003f90| 6f 70 65 6e 20 3d 20 5b | 30 2e 36 32 36 37 36 34 |open = [|0.626764|
|00003fa0| 5d 3a 5b 30 5d 3a 5b 31 | 5d 3b 20 0a 66 75 6e 63 |]:[0]:[1|]; .func|
|00003fb0| 20 76 6f 69 64 20 6d 61 | 69 6e 28 29 20 7b 0a 64 | void ma|in() {.d|
|00003fc0| 61 74 61 20 6e 75 6d 20 | 6d 61 74 65 72 69 61 6c |ata num |material|
|00003fd0| 5f 73 68 69 6e 65 20 3d | 20 5b 36 2e 33 39 32 32 |_shine =| [6.3922|
|00003fe0| 33 5d 3a 5b 30 5d 3a 5b | 31 30 5d 3b 20 0a 64 61 |3]:[0]:[|10]; .da|
|00003ff0| 74 61 20 6e 75 6d 20 6d | 61 74 65 72 69 61 6c 5f |ta num m|aterial_|
|00004000| 73 68 61 72 70 20 3d 20 | 5b 32 30 2e 35 31 33 5d |sharp = |[20.513]|
|00004010| 3a 5b 30 5d 3a 5b 31 30 | 30 5d 3b 20 0a 73 65 74 |:[0]:[10|0]; .set|
|00004020| 5f 73 68 69 6e 65 28 6d | 61 74 65 72 69 61 6c 5f |_shine(m|aterial_|
|00004030| 73 68 69 6e 65 29 3b 0a | 73 65 74 5f 73 68 61 72 |shine);.|set_shar|
|00004040| 70 28 6d 61 74 65 72 69 | 61 6c 5f 73 68 61 72 70 |p(materi|al_sharp|
|00004050| 29 3b 0a 62 75 69 6c 64 | 43 53 70 61 63 65 41 28 |);.build|CSpaceA(|
|00004060| 5b 30 5d 29 3b 0a 62 75 | 69 6c 64 43 53 70 61 63 |[0]);.bu|ildCSpac|
|00004070| 65 42 28 5b 31 5d 29 3b | 0a 62 75 69 6c 64 43 53 |eB([1]);|.buildCS|
|00004080| 70 61 63 65 43 28 5b 32 | 5d 29 3b 0a 62 75 69 6c |paceC([2|]);.buil|
|00004090| 64 43 53 70 61 63 65 44 | 28 5b 33 5d 29 3b 0a 64 |dCSpaceD|([3]);.d|
|000040a0| 61 74 61 20 6e 75 6d 20 | 66 73 69 7a 65 20 3d 20 |ata num |fsize = |
|000040b0| 5b 30 2e 39 5d 3b 20 0a | 73 74 61 6c 6b 28 29 3b |[0.9]; .|stalk();|
|000040c0| 0a 64 61 74 61 20 6e 75 | 6d 20 70 65 74 61 6c 5f |.data nu|m petal_|
|000040d0| 66 77 64 20 3d 20 5b 31 | 34 2e 35 34 36 37 5d 3a |fwd = [1|4.5467]:|
|000040e0| 5b 2d 32 30 5d 3a 5b 32 | 30 5d 3b 20 0a 66 6f 72 |[-20]:[2|0]; .for|
|000040f0| 77 61 72 64 28 28 70 65 | 74 61 6c 5f 66 77 64 2a |ward((pe|tal_fwd*|
|00004100| 6f 70 65 6e 29 29 3b 0a | 70 69 74 63 68 28 28 5b |open));.|pitch(([|
|00004110| 33 2e 31 34 31 35 39 5d | 2f 5b 32 5d 29 29 3b 0a |3.14159]|/[2]));.|
|00004120| 70 65 74 61 6c 28 29 3b | 0a 79 61 77 28 28 28 5b |petal();|.yaw((([|
|00004130| 32 5d 2a 5b 33 2e 31 34 | 31 35 39 5d 29 2f 5b 35 |2]*[3.14|159])/[5|
|00004140| 5d 29 29 3b 0a 70 65 74 | 61 6c 28 29 3b 0a 79 61 |]));.pet|al();.ya|
|00004150| 77 28 28 28 5b 32 5d 2a | 5b 33 2e 31 34 31 35 39 |w((([2]*|[3.14159|
|00004160| 5d 29 2f 5b 35 5d 29 29 | 3b 0a 70 65 74 61 6c 28 |])/[5]))|;.petal(|
|00004170| 29 3b 0a 79 61 77 28 28 | 28 5b 32 5d 2a 5b 33 2e |);.yaw((|([2]*[3.|
|00004180| 31 34 31 35 39 5d 29 2f | 5b 35 5d 29 29 3b 0a 70 |14159])/|[5]));.p|
|00004190| 65 74 61 6c 28 29 3b 0a | 79 61 77 28 28 28 5b 32 |etal();.|yaw((([2|
|000041a0| 5d 2a 5b 33 2e 31 34 31 | 35 39 5d 29 2f 5b 35 5d |]*[3.141|59])/[5]|
|000041b0| 29 29 3b 0a 70 65 74 61 | 6c 28 29 3b 0a 7d 0a 66 |));.peta|l();.}.f|
|000041c0| 75 6e 63 20 76 6f 69 64 | 20 73 74 61 6c 6b 28 29 |unc void| stalk()|
|000041d0| 20 7b 0a 64 61 74 61 20 | 6e 75 6d 20 73 70 68 65 | {.data |num sphe|
|000041e0| 72 65 6e 65 73 73 20 3d | 20 6f 70 65 6e 3b 20 0a |reness =| open; .|
|000041f0| 64 61 74 61 20 6e 75 6d | 20 73 68 65 65 74 6e 65 |data num| sheetne|
|00004200| 73 73 20 3d 20 28 5b 31 | 5d 2d 73 70 68 65 72 65 |ss = ([1|]-sphere|
|00004210| 6e 65 73 73 29 3b 20 0a | 64 61 74 61 20 69 6e 74 |ness); .|data int|
|00004220| 20 6d 61 78 72 69 6e 67 | 73 20 3d 20 5b 38 5d 3b | maxring|s = [8];|
|00004230| 20 0a 64 61 74 61 20 6e | 75 6d 20 61 6c 70 68 61 | .data n|um alpha|
|00004240| 20 3d 20 5b 30 5d 3b 20 | 0a 64 61 74 61 20 6e 75 | = [0]; |.data nu|
|00004250| 6d 20 64 65 6c 74 61 61 | 6c 70 68 61 20 3d 20 28 |m deltaa|lpha = (|
|00004260| 5b 33 2e 31 34 31 35 39 | 5d 2f 69 74 6f 6e 28 6d |[3.14159|]/iton(m|
|00004270| 61 78 72 69 6e 67 73 29 | 29 3b 20 0a 73 65 74 5f |axrings)|); .set_|
|00004280| 74 65 78 74 75 72 65 28 | 5b 30 5d 29 3b 0a 64 61 |texture(|[0]);.da|
|00004290| 74 61 20 6e 75 6d 20 73 | 70 68 65 72 65 5f 65 78 |ta num s|phere_ex|
|000042a0| 70 61 6e 64 65 64 20 3d | 20 5b 30 2e 32 35 30 36 |panded =| [0.2506|
|000042b0| 35 35 5d 3a 5b 2d 31 30 | 5d 3a 5b 31 35 5d 3b 20 |55]:[-10|]:[15]; |
|000042c0| 0a 69 66 28 6c 65 73 73 | 28 73 70 68 65 72 65 5f |.if(less|(sphere_|
|000042d0| 65 78 70 61 6e 64 65 64 | 2c 5b 31 5d 29 29 20 7b |expanded|,[1])) {|
|000042e0| 0a 73 70 68 65 72 65 5f | 65 78 70 61 6e 64 65 64 |.sphere_|expanded|
|000042f0| 20 3d 20 5b 31 5d 3b 0a | 7d 20 0a 66 6f 72 28 20 | = [1];.|} .for( |
|00004300| 69 6e 74 20 72 69 6e 67 | 20 3d 20 5b 30 5d 3b 20 |int ring| = [0]; |
|00004310| 69 6c 65 73 73 28 72 69 | 6e 67 2c 6d 61 78 72 69 |iless(ri|ng,maxri|
|00004320| 6e 67 73 29 3b 20 28 72 | 69 6e 67 2b 5b 31 5d 29 |ngs); (r|ing+[1])|
|00004330| 20 29 20 7b 0a 64 61 74 | 61 20 6e 75 6d 20 6c 6f | ) {.dat|a num lo|
|00004340| 63 75 73 20 3d 20 28 69 | 74 6f 6e 28 72 69 6e 67 |cus = (i|ton(ring|
|00004350| 29 2f 69 74 6f 6e 28 6d | 61 78 72 69 6e 67 73 29 |)/iton(m|axrings)|
|00004360| 29 3b 20 0a 73 65 74 5f | 63 6f 6c 6f 75 72 28 63 |); .set_|colour(c|
|00004370| 73 70 61 63 65 28 5b 32 | 5d 2c 6c 6f 63 75 73 29 |space([2|],locus)|
|00004380| 29 3b 0a 64 61 74 61 20 | 6e 75 6d 20 73 70 68 65 |);.data |num sphe|
|00004390| 72 65 7a 20 3d 20 28 63 | 6f 73 28 61 6c 70 68 61 |rez = (c|os(alpha|
|000043a0| 29 2a 73 70 68 65 72 65 | 5f 65 78 70 61 6e 64 65 |)*sphere|_expande|
|000043b0| 64 29 3b 20 0a 64 61 74 | 61 20 6e 75 6d 20 73 70 |d); .dat|a num sp|
|000043c0| 68 65 72 65 72 61 64 69 | 75 73 20 3d 20 28 73 69 |hereradi|us = (si|
|000043d0| 6e 28 61 6c 70 68 61 29 | 2a 73 70 68 65 72 65 5f |n(alpha)|*sphere_|
|000043e0| 65 78 70 61 6e 64 65 64 | 29 3b 20 0a 64 61 74 61 |expanded|); .data|
|000043f0| 20 6e 75 6d 20 63 69 72 | 63 75 6d 20 3d 20 28 28 | num cir|cum = ((|
|00004400| 5b 32 5d 2a 5b 33 2e 31 | 34 31 35 39 5d 29 2a 69 |[2]*[3.1|4159])*i|
|00004410| 74 6f 6e 28 72 69 6e 67 | 29 29 3b 20 0a 64 61 74 |ton(ring|)); .dat|
|00004420| 61 20 69 6e 74 20 73 65 | 67 73 20 3d 20 6e 74 6f |a int se|gs = nto|
|00004430| 69 28 63 69 72 63 75 6d | 29 3b 20 0a 64 61 74 61 |i(circum|); .data|
|00004440| 20 6e 75 6d 20 64 65 6c | 74 61 74 68 65 74 61 20 | num del|tatheta |
|00004450| 3d 20 28 28 5b 32 5d 2a | 5b 33 2e 31 34 31 35 39 |= (([2]*|[3.14159|
|00004460| 5d 29 2f 63 69 72 63 75 | 6d 29 3b 20 0a 64 61 74 |])/circu|m); .dat|
|00004470| 61 20 6e 75 6d 20 74 68 | 65 74 61 20 3d 20 5b 30 |a num th|eta = [0|
|00004480| 5d 3b 20 0a 66 6f 72 28 | 20 69 6e 74 20 73 65 67 |]; .for(| int seg|
|00004490| 20 3d 20 5b 30 5d 3b 20 | 69 6c 65 73 73 28 73 65 | = [0]; |iless(se|
|000044a0| 67 2c 73 65 67 73 29 3b | 20 28 73 65 67 2b 5b 31 |g,segs);| (seg+[1|
|000044b0| 5d 29 20 29 20 7b 0a 64 | 61 74 61 20 6e 75 6d 20 |]) ) {.d|ata num |
|000044c0| 6e 6f 72 6d 78 20 3d 20 | 63 6f 73 28 74 68 65 74 |normx = |cos(thet|
|000044d0| 61 29 3b 20 0a 64 61 74 | 61 20 6e 75 6d 20 6e 6f |a); .dat|a num no|
|000044e0| 72 6d 79 20 3d 20 73 69 | 6e 28 74 68 65 74 61 29 |rmy = si|n(theta)|
|000044f0| 3b 20 0a 64 61 74 61 20 | 6e 75 6d 20 73 68 65 65 |; .data |num shee|
|00004500| 74 72 61 64 69 75 73 20 | 3d 20 69 74 6f 6e 28 72 |tradius |= iton(r|
|00004510| 69 6e 67 29 3b 20 0a 64 | 61 74 61 20 6e 75 6d 20 |ing); .d|ata num |
|00004520| 74 6f 74 61 6c 72 61 64 | 69 75 73 20 3d 20 28 28 |totalrad|ius = ((|
|00004530| 73 68 65 65 74 6e 65 73 | 73 2a 73 68 65 65 74 72 |sheetnes|s*sheetr|
|00004540| 61 64 69 75 73 29 2b 28 | 73 70 68 65 72 65 6e 65 |adius)+(|spherene|
|00004550| 73 73 2a 73 70 68 65 72 | 65 72 61 64 69 75 73 29 |ss*spher|eradius)|
|00004560| 29 3b 20 0a 64 61 74 61 | 20 6e 75 6d 20 78 20 3d |); .data| num x =|
|00004570| 20 28 74 6f 74 61 6c 72 | 61 64 69 75 73 2a 6e 6f | (totalr|adius*no|
|00004580| 72 6d 78 29 3b 20 0a 64 | 61 74 61 20 6e 75 6d 20 |rmx); .d|ata num |
|00004590| 79 20 3d 20 28 74 6f 74 | 61 6c 72 61 64 69 75 73 |y = (tot|alradius|
|000045a0| 2a 6e 6f 72 6d 79 29 3b | 20 0a 64 61 74 61 20 6e |*normy);| .data n|
|000045b0| 75 6d 20 7a 20 3d 20 28 | 73 70 68 65 72 65 6e 65 |um z = (|spherene|
|000045c0| 73 73 2a 73 70 68 65 72 | 65 7a 29 3b 20 0a 70 75 |ss*spher|ez); .pu|
|000045d0| 73 68 28 29 3b 0a 64 61 | 74 61 20 6e 75 6d 20 73 |sh();.da|ta num s|
|000045e0| 70 68 65 72 65 73 69 7a | 65 20 3d 20 5b 30 2e 39 |pheresiz|e = [0.9|
|000045f0| 32 30 35 36 34 5d 3a 5b | 30 2e 31 5d 3a 5b 31 5d |20564]:[|0.1]:[1]|
|00004600| 3b 20 0a 65 67 67 5f 75 | 73 63 61 6c 65 28 73 70 |; .egg_u|scale(sp|
|00004610| 68 65 72 65 73 69 7a 65 | 29 3b 0a 6d 6f 76 65 28 |heresize|);.move(|
|00004620| 76 33 6d 61 6b 65 28 78 | 2c 79 2c 7a 29 29 3b 0a |v3make(x|,y,z));.|
|00004630| 73 65 74 5f 70 72 69 6d | 28 5b 33 5d 29 3b 0a 6c |set_prim|([3]);.l|
|00004640| 61 79 28 29 3b 0a 70 6f | 70 28 29 3b 0a 74 68 65 |ay();.po|p();.the|
|00004650| 74 61 20 3d 20 28 74 68 | 65 74 61 2b 64 65 6c 74 |ta = (th|eta+delt|
|00004660| 61 74 68 65 74 61 29 3b | 0a 7d 20 0a 61 6c 70 68 |atheta);|.} .alph|
|00004670| 61 20 3d 20 28 61 6c 70 | 68 61 2b 64 65 6c 74 61 |a = (alp|ha+delta|
|00004680| 61 6c 70 68 61 29 3b 0a | 7d 20 0a 7d 0a 66 75 6e |alpha);.|} .}.fun|
|00004690| 63 20 76 6f 69 64 20 70 | 65 74 61 6c 28 29 20 7b |c void p|etal() {|
|000046a0| 0a 70 75 73 68 28 29 3b | 0a 66 6f 72 77 61 72 64 |.push();|.forward|
|000046b0| 28 5b 32 2e 35 5d 29 3b | 0a 70 69 74 63 68 28 28 |([2.5]);|.pitch((|
|000046c0| 2d 5b 33 2e 31 34 31 35 | 39 5d 2f 5b 35 5d 29 29 |-[3.1415|9]/[5]))|
|000046d0| 3b 0a 79 61 77 28 28 2d | 5b 33 2e 31 34 31 35 39 |;.yaw((-|[3.14159|
|000046e0| 5d 2f 5b 34 5d 29 29 3b | 0a 72 6f 6c 6c 28 28 2d |]/[4]));|.roll((-|
|000046f0| 5b 33 2e 31 34 31 35 39 | 5d 2f 5b 36 5d 29 29 3b |[3.14159|]/[6]));|
|00004700| 0a 73 65 74 5f 70 72 69 | 6d 28 5b 33 5d 29 3b 0a |.set_pri|m([3]);.|
|00004710| 64 61 74 61 20 69 6e 74 | 20 73 65 67 73 20 3d 20 |data int| segs = |
|00004720| 5b 33 30 5d 3b 20 0a 73 | 65 74 5f 74 65 78 74 75 |[30]; .s|et_textu|
|00004730| 72 65 28 5b 31 5d 29 3b | 0a 66 6f 72 28 20 69 6e |re([1]);|.for( in|
|00004740| 74 20 69 20 3d 20 5b 31 | 5d 3b 20 69 6c 65 73 73 |t i = [1|]; iless|
|00004750| 28 69 2c 73 65 67 73 29 | 3b 20 28 69 2b 5b 31 5d |(i,segs)|; (i+[1]|
|00004760| 29 20 29 20 7b 0a 64 61 | 74 61 20 6e 75 6d 20 61 |) ) {.da|ta num a|
|00004770| 6d 70 6c 69 74 75 64 65 | 20 3d 20 73 69 6e 28 28 |mplitude| = sin((|
|00004780| 28 5b 33 2e 31 34 31 35 | 39 5d 2a 69 74 6f 6e 28 |([3.1415|9]*iton(|
|00004790| 69 29 29 2f 69 74 6f 6e | 28 73 65 67 73 29 29 29 |i))/iton|(segs)))|
|000047a0| 3b 20 0a 73 65 74 5f 63 | 6f 6c 6f 75 72 28 63 73 |; .set_c|olour(cs|
|000047b0| 70 61 63 65 28 5b 31 5d | 2c 61 6d 70 6c 69 74 75 |pace([1]|,amplitu|
|000047c0| 64 65 29 29 3b 0a 79 61 | 77 28 28 5b 33 2e 31 34 |de));.ya|w(([3.14|
|000047d0| 31 35 39 5d 2f 69 74 6f | 6e 28 73 65 67 73 29 29 |159]/ito|n(segs))|
|000047e0| 29 3b 0a 70 75 73 68 28 | 29 3b 0a 66 6f 72 77 61 |);.push(|);.forwa|
|000047f0| 72 64 28 5b 30 2e 31 5d | 29 3b 0a 64 61 74 61 20 |rd([0.1]|);.data |
|00004800| 6e 75 6d 20 66 6c 65 78 | 20 3d 20 5b 2d 30 2e 38 |num flex| = [-0.8|
|00004810| 36 31 37 34 33 5d 3a 5b | 2d 32 2e 35 5d 3a 5b 32 |61743]:[|-2.5]:[2|
|00004820| 2e 35 5d 3b 20 0a 65 67 | 67 5f 73 63 61 6c 65 28 |.5]; .eg|g_scale(|
|00004830| 76 33 6d 61 6b 65 28 6f | 70 65 6e 2c 6f 70 65 6e |v3make(o|pen,open|
|00004840| 2c 28 28 6f 70 65 6e 2a | 5b 36 5d 29 2a 28 61 6d |,((open*|[6])*(am|
|00004850| 70 6c 69 74 75 64 65 2b | 5b 31 5d 29 29 29 29 3b |plitude+|[1]))));|
|00004860| 0a 70 69 74 63 68 28 28 | 28 28 5b 33 2e 31 34 31 |.pitch((|(([3.141|
|00004870| 35 39 5d 2f 5b 32 5d 29 | 2a 61 6d 70 6c 69 74 75 |59]/[2])|*amplitu|
|00004880| 64 65 29 2a 66 6c 65 78 | 29 29 3b 0a 6c 61 79 28 |de)*flex|));.lay(|
|00004890| 29 3b 0a 70 6f 70 28 29 | 3b 0a 79 61 77 28 28 5b |);.pop()|;.yaw(([|
|000048a0| 33 2e 31 34 31 35 39 5d | 2f 5b 32 5d 29 29 3b 0a |3.14159]|/[2]));.|
|000048b0| 66 6f 72 77 61 72 64 28 | 28 5b 30 2e 34 5d 2a 6f |forward(|([0.4]*o|
|000048c0| 70 65 6e 29 29 3b 0a 79 | 61 77 28 28 2d 5b 33 2e |pen));.y|aw((-[3.|
|000048d0| 31 34 31 35 39 5d 2f 5b | 32 5d 29 29 3b 0a 7d 20 |14159]/[|2]));.} |
|000048e0| 0a 70 6f 70 28 29 3b 0a | 7d 0a 66 75 6e 63 20 76 |.pop();.|}.func v|
|000048f0| 6f 69 64 20 62 75 69 6c | 64 43 53 70 61 63 65 41 |oid buil|dCSpaceA|
|00004900| 28 20 69 6e 74 20 69 6e | 64 65 78 20 29 20 7b 0a |( int in|dex ) {.|
|00004910| 64 61 74 61 20 63 6f 6c | 6f 75 72 20 63 30 20 3d |data col|our c0 =|
|00004920| 20 5b 3c 30 2e 33 36 34 | 30 39 37 2c 30 2e 39 34 | [<0.364|097,0.94|
|00004930| 31 33 32 38 2c 30 2e 32 | 32 36 38 39 34 2c 30 3e |1328,0.2|26894,0>|
|00004940| 5d 3a 5b 3c 30 2c 30 2e | 34 2c 30 2c 30 3e 5d 3a |]:[<0,0.|4,0,0>]:|
|00004950| 5b 3c 31 2c 31 2c 31 2c | 30 3e 5d 3b 20 0a 64 61 |[<1,1,1,|0>]; .da|
|00004960| 74 61 20 63 6f 6c 6f 75 | 72 20 63 31 20 3d 20 5b |ta colou|r c1 = [|
|00004970| 3c 30 2e 32 30 32 37 34 | 31 2c 30 2e 36 35 33 39 |<0.20274|1,0.6539|
|00004980| 34 35 2c 30 2e 34 31 31 | 36 39 33 2c 30 3e 5d 3a |45,0.411|693,0>]:|
|00004990| 5b 3c 30 2c 30 2e 34 2c | 30 2c 30 3e 5d 3a 5b 3c |[<0,0.4,|0,0>]:[<|
|000049a0| 31 2c 31 2c 31 2c 30 3e | 5d 3b 20 0a 64 61 74 61 |1,1,1,0>|]; .data|
|000049b0| 20 63 6f 6c 6f 75 72 20 | 63 32 20 3d 20 5b 3c 30 | colour |c2 = [<0|
|000049c0| 2e 38 37 35 38 34 32 2c | 30 2e 34 37 31 35 34 39 |.875842,|0.471549|
|000049d0| 2c 30 2e 32 34 39 39 32 | 38 2c 30 3e 5d 3a 5b 3c |,0.24992|8,0>]:[<|
|000049e0| 30 2c 30 2e 34 2c 30 2c | 30 3e 5d 3a 5b 3c 31 2c |0,0.4,0,|0>]:[<1,|
|000049f0| 31 2c 31 2c 30 3e 5d 3b | 20 0a 64 61 74 61 20 63 |1,1,0>];| .data c|
|00004a00| 6f 6c 6f 75 72 20 63 33 | 20 3d 20 5b 3c 30 2e 33 |olour c3| = [<0.3|
|00004a10| 33 39 31 36 35 2c 30 2e | 39 32 32 31 36 36 2c 30 |39165,0.|922166,0|
|00004a20| 2e 34 39 35 37 32 37 2c | 30 3e 5d 3a 5b 3c 30 2c |.495727,|0>]:[<0,|
|00004a30| 30 2e 34 2c 30 2c 30 3e | 5d 3a 5b 3c 31 2c 31 2c |0.4,0,0>|]:[<1,1,|
|00004a40| 31 2c 30 3e 5d 3b 20 0a | 64 61 74 61 20 6e 75 6d |1,0>]; .|data num|
|00004a50| 20 64 65 6c 74 61 31 20 | 3d 20 5b 30 2e 36 35 33 | delta1 |= [0.653|
|00004a60| 33 33 35 5d 3a 5b 30 2e | 30 31 5d 3a 5b 31 5d 3b |335]:[0.|01]:[1];|
|00004a70| 20 0a 64 61 74 61 20 6e | 75 6d 20 64 65 6c 74 61 | .data n|um delta|
|00004a80| 32 20 3d 20 5b 30 2e 31 | 38 34 35 35 31 5d 3a 5b |2 = [0.1|84551]:[|
|00004a90| 30 2e 30 31 5d 3a 5b 31 | 5d 3b 20 0a 64 61 74 61 |0.01]:[1|]; .data|
|00004aa0| 20 6e 75 6d 20 64 65 6c | 74 61 33 20 3d 20 5b 30 | num del|ta3 = [0|
|00004ab0| 2e 31 38 31 34 35 38 5d | 3a 5b 30 2e 30 31 5d 3a |.181458]|:[0.01]:|
|00004ac0| 5b 31 5d 3b 20 0a 69 6e | 69 74 5f 63 73 70 61 63 |[1]; .in|it_cspac|
|00004ad0| 65 28 69 6e 64 65 78 2c | 63 30 29 3b 0a 65 78 74 |e(index,|c0);.ext|
|00004ae0| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00004af0| 2c 64 65 6c 74 61 31 2c | 63 31 29 3b 0a 65 78 74 |,delta1,|c1);.ext|
|00004b00| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00004b10| 2c 64 65 6c 74 61 32 2c | 63 32 29 3b 0a 65 78 74 |,delta2,|c2);.ext|
|00004b20| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00004b30| 2c 64 65 6c 74 61 33 2c | 63 33 29 3b 0a 7d 0a 66 |,delta3,|c3);.}.f|
|00004b40| 75 6e 63 20 76 6f 69 64 | 20 62 75 69 6c 64 43 53 |unc void| buildCS|
|00004b50| 70 61 63 65 42 28 20 69 | 6e 74 20 69 6e 64 65 78 |paceB( i|nt index|
|00004b60| 20 29 20 7b 0a 64 61 74 | 61 20 63 6f 6c 6f 75 72 | ) {.dat|a colour|
|00004b70| 20 63 30 20 3d 20 5b 3c | 30 2e 37 39 30 38 36 32 | c0 = [<|0.790862|
|00004b80| 2c 30 2e 36 35 38 30 35 | 31 2c 30 2e 33 30 34 34 |,0.65805|1,0.3044|
|00004b90| 36 35 2c 30 3e 5d 3a 5b | 3c 30 2c 30 2e 34 2c 30 |65,0>]:[|<0,0.4,0|
|00004ba0| 2c 30 3e 5d 3a 5b 3c 31 | 2c 31 2c 31 2c 30 3e 5d |,0>]:[<1|,1,1,0>]|
|00004bb0| 3b 20 0a 64 61 74 61 20 | 63 6f 6c 6f 75 72 20 63 |; .data |colour c|
|00004bc0| 31 20 3d 20 5b 3c 30 2e | 30 30 35 38 34 32 38 34 |1 = [<0.|00584284|
|00004bd0| 2c 30 2e 34 33 30 30 30 | 31 2c 30 2e 39 36 31 37 |,0.43000|1,0.9617|
|00004be0| 33 39 2c 30 3e 5d 3a 5b | 3c 30 2c 30 2e 34 2c 30 |39,0>]:[|<0,0.4,0|
|00004bf0| 2c 30 3e 5d 3a 5b 3c 31 | 2c 31 2c 31 2c 30 3e 5d |,0>]:[<1|,1,1,0>]|
|00004c00| 3b 20 0a 64 61 74 61 20 | 63 6f 6c 6f 75 72 20 63 |; .data |colour c|
|00004c10| 32 20 3d 20 5b 3c 30 2e | 32 34 39 39 30 33 2c 30 |2 = [<0.|249903,0|
|00004c20| 2e 39 32 39 30 31 38 2c | 30 2e 36 31 33 38 38 31 |.929018,|0.613881|
|00004c30| 2c 30 3e 5d 3a 5b 3c 30 | 2c 30 2e 34 2c 30 2c 30 |,0>]:[<0|,0.4,0,0|
|00004c40| 3e 5d 3a 5b 3c 31 2c 31 | 2c 31 2c 30 3e 5d 3b 20 |>]:[<1,1|,1,0>]; |
|00004c50| 0a 64 61 74 61 20 63 6f | 6c 6f 75 72 20 63 33 20 |.data co|lour c3 |
|00004c60| 3d 20 5b 3c 30 2e 33 36 | 35 32 30 31 2c 30 2e 35 |= [<0.36|5201,0.5|
|00004c70| 36 30 34 34 38 2c 30 2e | 34 39 34 33 30 37 2c 30 |60448,0.|494307,0|
|00004c80| 3e 5d 3a 5b 3c 30 2c 30 | 2e 34 2c 30 2c 30 3e 5d |>]:[<0,0|.4,0,0>]|
|00004c90| 3a 5b 3c 31 2c 31 2c 31 | 2c 30 3e 5d 3b 20 0a 64 |:[<1,1,1|,0>]; .d|
|00004ca0| 61 74 61 20 6e 75 6d 20 | 64 65 6c 74 61 31 20 3d |ata num |delta1 =|
|00004cb0| 20 5b 30 2e 36 32 39 32 | 31 5d 3a 5b 30 2e 30 31 | [0.6292|1]:[0.01|
|00004cc0| 5d 3a 5b 31 5d 3b 20 0a | 64 61 74 61 20 6e 75 6d |]:[1]; .|data num|
|00004cd0| 20 64 65 6c 74 61 32 20 | 3d 20 5b 30 2e 37 33 31 | delta2 |= [0.731|
|00004ce0| 35 35 38 5d 3a 5b 30 2e | 30 31 5d 3a 5b 31 5d 3b |558]:[0.|01]:[1];|
|00004cf0| 20 0a 64 61 74 61 20 6e | 75 6d 20 64 65 6c 74 61 | .data n|um delta|
|00004d00| 33 20 3d 20 5b 30 2e 31 | 34 35 36 37 31 5d 3a 5b |3 = [0.1|45671]:[|
|00004d10| 30 2e 30 31 5d 3a 5b 31 | 5d 3b 20 0a 69 6e 69 74 |0.01]:[1|]; .init|
|00004d20| 5f 63 73 70 61 63 65 28 | 69 6e 64 65 78 2c 63 30 |_cspace(|index,c0|
|00004d30| 29 3b 0a 65 78 74 65 6e | 64 5f 63 73 70 61 63 65 |);.exten|d_cspace|
|00004d40| 28 69 6e 64 65 78 2c 64 | 65 6c 74 61 31 2c 63 31 |(index,d|elta1,c1|
|00004d50| 29 3b 0a 65 78 74 65 6e | 64 5f 63 73 70 61 63 65 |);.exten|d_cspace|
|00004d60| 28 69 6e 64 65 78 2c 64 | 65 6c 74 61 32 2c 63 32 |(index,d|elta2,c2|
|00004d70| 29 3b 0a 65 78 74 65 6e | 64 5f 63 73 70 61 63 65 |);.exten|d_cspace|
|00004d80| 28 69 6e 64 65 78 2c 64 | 65 6c 74 61 33 2c 63 33 |(index,d|elta3,c3|
|00004d90| 29 3b 0a 7d 0a 66 75 6e | 63 20 76 6f 69 64 20 62 |);.}.fun|c void b|
|00004da0| 75 69 6c 64 43 53 70 61 | 63 65 43 28 20 69 6e 74 |uildCSpa|ceC( int|
|00004db0| 20 69 6e 64 65 78 20 29 | 20 7b 0a 64 61 74 61 20 | index )| {.data |
|00004dc0| 63 6f 6c 6f 75 72 20 63 | 30 20 3d 20 5b 3c 30 2e |colour c|0 = [<0.|
|00004dd0| 33 35 34 30 34 36 2c 30 | 2e 34 34 38 36 39 38 2c |354046,0|.448698,|
|00004de0| 30 2e 33 30 33 35 33 32 | 2c 30 3e 5d 3a 5b 3c 30 |0.303532|,0>]:[<0|
|00004df0| 2c 30 2e 34 2c 30 2c 30 | 3e 5d 3a 5b 3c 31 2c 31 |,0.4,0,0|>]:[<1,1|
|00004e00| 2c 31 2c 30 3e 5d 3b 20 | 0a 64 61 74 61 20 63 6f |,1,0>]; |.data co|
|00004e10| 6c 6f 75 72 20 63 31 20 | 3d 20 5b 3c 30 2e 31 31 |lour c1 |= [<0.11|
|00004e20| 32 38 35 34 2c 30 2e 39 | 34 37 37 30 38 2c 30 2e |2854,0.9|47708,0.|
|00004e30| 37 32 38 30 36 34 2c 30 | 3e 5d 3a 5b 3c 30 2c 30 |728064,0|>]:[<0,0|
|00004e40| 2e 34 2c 30 2c 30 3e 5d | 3a 5b 3c 31 2c 31 2c 31 |.4,0,0>]|:[<1,1,1|
|00004e50| 2c 30 3e 5d 3b 20 0a 64 | 61 74 61 20 63 6f 6c 6f |,0>]; .d|ata colo|
|00004e60| 75 72 20 63 32 20 3d 20 | 5b 3c 30 2e 39 32 36 32 |ur c2 = |[<0.9262|
|00004e70| 31 34 2c 30 2e 39 36 30 | 38 32 36 2c 30 2e 32 30 |14,0.960|826,0.20|
|00004e80| 39 37 35 35 2c 30 3e 5d | 3a 5b 3c 30 2c 30 2e 34 |9755,0>]|:[<0,0.4|
|00004e90| 2c 30 2c 30 3e 5d 3a 5b | 3c 31 2c 31 2c 31 2c 30 |,0,0>]:[|<1,1,1,0|
|00004ea0| 3e 5d 3b 20 0a 64 61 74 | 61 20 63 6f 6c 6f 75 72 |>]; .dat|a colour|
|00004eb0| 20 63 33 20 3d 20 5b 3c | 30 2e 31 36 33 31 34 31 | c3 = [<|0.163141|
|00004ec0| 2c 30 2e 37 39 35 33 32 | 2c 30 2e 39 35 31 34 30 |,0.79532|,0.95140|
|00004ed0| 39 2c 30 3e 5d 3a 5b 3c | 30 2c 30 2e 34 2c 30 2c |9,0>]:[<|0,0.4,0,|
|00004ee0| 30 3e 5d 3a 5b 3c 31 2c | 31 2c 31 2c 30 3e 5d 3b |0>]:[<1,|1,1,0>];|
|00004ef0| 20 0a 64 61 74 61 20 6e | 75 6d 20 64 65 6c 74 61 | .data n|um delta|
|00004f00| 31 20 3d 20 5b 30 2e 33 | 30 32 34 39 39 5d 3a 5b |1 = [0.3|02499]:[|
|00004f10| 30 2e 30 31 5d 3a 5b 31 | 5d 3b 20 0a 64 61 74 61 |0.01]:[1|]; .data|
|00004f20| 20 6e 75 6d 20 64 65 6c | 74 61 32 20 3d 20 5b 30 | num del|ta2 = [0|
|00004f30| 2e 32 34 33 37 33 37 5d | 3a 5b 30 2e 30 31 5d 3a |.243737]|:[0.01]:|
|00004f40| 5b 31 5d 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 64 |[1]; .da|ta num d|
|00004f50| 65 6c 74 61 33 20 3d 20 | 5b 30 2e 37 31 38 35 39 |elta3 = |[0.71859|
|00004f60| 33 5d 3a 5b 30 2e 30 31 | 5d 3a 5b 31 5d 3b 20 0a |3]:[0.01|]:[1]; .|
|00004f70| 69 6e 69 74 5f 63 73 70 | 61 63 65 28 69 6e 64 65 |init_csp|ace(inde|
|00004f80| 78 2c 63 30 29 3b 0a 65 | 78 74 65 6e 64 5f 63 73 |x,c0);.e|xtend_cs|
|00004f90| 70 61 63 65 28 69 6e 64 | 65 78 2c 64 65 6c 74 61 |pace(ind|ex,delta|
|00004fa0| 31 2c 63 31 29 3b 0a 65 | 78 74 65 6e 64 5f 63 73 |1,c1);.e|xtend_cs|
|00004fb0| 70 61 63 65 28 69 6e 64 | 65 78 2c 64 65 6c 74 61 |pace(ind|ex,delta|
|00004fc0| 32 2c 63 32 29 3b 0a 65 | 78 74 65 6e 64 5f 63 73 |2,c2);.e|xtend_cs|
|00004fd0| 70 61 63 65 28 69 6e 64 | 65 78 2c 64 65 6c 74 61 |pace(ind|ex,delta|
|00004fe0| 33 2c 63 33 29 3b 0a 7d | 0a 66 75 6e 63 20 76 6f |3,c3);.}|.func vo|
|00004ff0| 69 64 20 62 75 69 6c 64 | 43 53 70 61 63 65 44 28 |id build|CSpaceD(|
|00005000| 20 69 6e 74 20 69 6e 64 | 65 78 20 29 20 7b 0a 64 | int ind|ex ) {.d|
|00005010| 61 74 61 20 63 6f 6c 6f | 75 72 20 63 30 20 3d 20 |ata colo|ur c0 = |
|00005020| 5b 3c 30 2e 38 36 36 38 | 35 38 2c 30 2e 35 30 32 |[<0.8668|58,0.502|
|00005030| 37 39 34 2c 30 2e 36 36 | 38 30 39 35 2c 30 3e 5d |794,0.66|8095,0>]|
|00005040| 3a 5b 3c 30 2c 30 2e 34 | 2c 30 2c 30 3e 5d 3a 5b |:[<0,0.4|,0,0>]:[|
|00005050| 3c 31 2c 31 2c 31 2c 30 | 3e 5d 3b 20 0a 64 61 74 |<1,1,1,0|>]; .dat|
|00005060| 61 20 63 6f 6c 6f 75 72 | 20 63 31 20 3d 20 5b 3c |a colour| c1 = [<|
|00005070| 30 2e 30 38 34 33 37 38 | 39 2c 30 2e 34 32 37 36 |0.084378|9,0.4276|
|00005080| 37 31 2c 30 2e 32 34 34 | 37 31 38 2c 30 3e 5d 3a |71,0.244|718,0>]:|
|00005090| 5b 3c 30 2c 30 2e 34 2c | 30 2c 30 3e 5d 3a 5b 3c |[<0,0.4,|0,0>]:[<|
|000050a0| 31 2c 31 2c 31 2c 30 3e | 5d 3b 20 0a 64 61 74 61 |1,1,1,0>|]; .data|
|000050b0| 20 63 6f 6c 6f 75 72 20 | 63 32 20 3d 20 5b 3c 30 | colour |c2 = [<0|
|000050c0| 2e 34 37 36 34 37 35 2c | 30 2e 38 37 37 38 38 34 |.476475,|0.877884|
|000050d0| 2c 30 2e 34 30 38 32 34 | 39 2c 30 3e 5d 3a 5b 3c |,0.40824|9,0>]:[<|
|000050e0| 30 2c 30 2e 34 2c 30 2c | 30 3e 5d 3a 5b 3c 31 2c |0,0.4,0,|0>]:[<1,|
|000050f0| 31 2c 31 2c 30 3e 5d 3b | 20 0a 64 61 74 61 20 63 |1,1,0>];| .data c|
|00005100| 6f 6c 6f 75 72 20 63 33 | 20 3d 20 5b 3c 30 2e 34 |olour c3| = [<0.4|
|00005110| 30 34 36 38 38 2c 30 2e | 39 33 39 33 39 37 2c 30 |04688,0.|939397,0|
|00005120| 2e 34 38 33 32 33 32 2c | 30 3e 5d 3a 5b 3c 30 2c |.483232,|0>]:[<0,|
|00005130| 30 2e 34 2c 30 2c 30 3e | 5d 3a 5b 3c 31 2c 31 2c |0.4,0,0>|]:[<1,1,|
|00005140| 31 2c 30 3e 5d 3b 20 0a | 64 61 74 61 20 6e 75 6d |1,0>]; .|data num|
|00005150| 20 64 65 6c 74 61 31 20 | 3d 20 5b 30 2e 36 37 31 | delta1 |= [0.671|
|00005160| 38 39 39 5d 3a 5b 30 2e | 30 31 5d 3a 5b 31 5d 3b |899]:[0.|01]:[1];|
|00005170| 20 0a 64 61 74 61 20 6e | 75 6d 20 64 65 6c 74 61 | .data n|um delta|
|00005180| 32 20 3d 20 5b 30 2e 36 | 34 39 37 35 33 5d 3a 5b |2 = [0.6|49753]:[|
|00005190| 30 2e 30 31 5d 3a 5b 31 | 5d 3b 20 0a 64 61 74 61 |0.01]:[1|]; .data|
|000051a0| 20 6e 75 6d 20 64 65 6c | 74 61 33 20 3d 20 5b 30 | num del|ta3 = [0|
|000051b0| 2e 31 36 36 34 35 36 5d | 3a 5b 30 2e 30 31 5d 3a |.166456]|:[0.01]:|
|000051c0| 5b 31 5d 3b 20 0a 69 6e | 69 74 5f 63 73 70 61 63 |[1]; .in|it_cspac|
|000051d0| 65 28 69 6e 64 65 78 2c | 63 30 29 3b 0a 65 78 74 |e(index,|c0);.ext|
|000051e0| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|000051f0| 2c 64 65 6c 74 61 31 2c | 63 31 29 3b 0a 65 78 74 |,delta1,|c1);.ext|
|00005200| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00005210| 2c 64 65 6c 74 61 32 2c | 63 32 29 3b 0a 65 78 74 |,delta2,|c2);.ext|
|00005220| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00005230| 2c 64 65 6c 74 61 33 2c | 63 33 29 3b 0a 7d 0a 7d |,delta3,|c3);.}.}|
|00005240| 20 0a 7d 20 69 6e 64 69 | 20 64 61 6e 63 65 72 20 | .} indi| dancer |
|00005250| 7b 0a 2f 2f 20 42 61 73 | 65 49 6e 64 69 20 61 74 |{.// Bas|eIndi at|
|00005260| 74 72 69 62 75 74 65 73 | 0a 2f 2f 20 44 61 6e 63 |tributes|.// Danc|
|00005270| 65 72 49 6e 64 69 41 74 | 74 72 69 62 75 74 65 73 |erIndiAt|tributes|
|00005280| 0a 67 65 6e 6f 6d 65 20 | 64 61 6e 63 65 72 20 7b |.genome |dancer {|
|00005290| 0a 2f 2f 20 42 61 73 65 | 47 65 6e 6f 6d 65 20 61 |.// Base|Genome a|
|000052a0| 74 74 72 69 62 75 74 65 | 73 0a 2f 2f 20 44 61 6e |ttribute|s.// Dan|
|000052b0| 63 65 72 47 65 6e 6f 6d | 65 20 61 74 74 72 69 62 |cerGenom|e attrib|
|000052c0| 75 74 65 73 0a 70 72 6f | 67 0a 66 75 6e 63 20 76 |utes.pro|g.func v|
|000052d0| 6f 69 64 20 6d 61 69 6e | 28 29 3b 0a 66 75 6e 63 |oid main|();.func|
|000052e0| 20 76 6f 69 64 20 73 74 | 61 6c 6b 28 29 3b 0a 66 | void st|alk();.f|
|000052f0| 75 6e 63 20 76 6f 69 64 | 20 70 65 74 61 6c 28 29 |unc void| petal()|
|00005300| 3b 0a 66 75 6e 63 20 76 | 6f 69 64 20 62 75 69 6c |;.func v|oid buil|
|00005310| 64 43 53 70 61 63 65 41 | 28 20 69 6e 74 20 69 6e |dCSpaceA|( int in|
|00005320| 64 65 78 20 29 3b 0a 66 | 75 6e 63 20 76 6f 69 64 |dex );.f|unc void|
|00005330| 20 62 75 69 6c 64 43 53 | 70 61 63 65 42 28 20 69 | buildCS|paceB( i|
|00005340| 6e 74 20 69 6e 64 65 78 | 20 29 3b 0a 66 75 6e 63 |nt index| );.func|
|00005350| 20 76 6f 69 64 20 62 75 | 69 6c 64 43 53 70 61 63 | void bu|ildCSpac|
|00005360| 65 43 28 20 69 6e 74 20 | 69 6e 64 65 78 20 29 3b |eC( int |index );|
|00005370| 0a 66 75 6e 63 20 76 6f | 69 64 20 62 75 69 6c 64 |.func vo|id build|
|00005380| 43 53 70 61 63 65 44 28 | 20 69 6e 74 20 69 6e 64 |CSpaceD(| int ind|
|00005390| 65 78 20 29 3b 0a 64 61 | 74 61 20 6e 75 6d 20 6f |ex );.da|ta num o|
|000053a0| 70 65 6e 20 3d 20 5b 31 | 5d 3a 5b 30 5d 3a 5b 31 |pen = [1|]:[0]:[1|
|000053b0| 5d 3b 20 0a 66 75 6e 63 | 20 76 6f 69 64 20 6d 61 |]; .func| void ma|
|000053c0| 69 6e 28 29 20 7b 0a 64 | 61 74 61 20 6e 75 6d 20 |in() {.d|ata num |
|000053d0| 6d 61 74 65 72 69 61 6c | 5f 73 68 69 6e 65 20 3d |material|_shine =|
|000053e0| 20 5b 39 2e 35 32 39 35 | 39 5d 3a 5b 30 5d 3a 5b | [9.5295|9]:[0]:[|
|000053f0| 31 30 5d 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 6d |10]; .da|ta num m|
|00005400| 61 74 65 72 69 61 6c 5f | 73 68 61 72 70 20 3d 20 |aterial_|sharp = |
|00005410| 5b 39 30 2e 35 31 33 5d | 3a 5b 30 5d 3a 5b 31 30 |[90.513]|:[0]:[10|
|00005420| 30 5d 3b 20 0a 73 65 74 | 5f 73 68 69 6e 65 28 6d |0]; .set|_shine(m|
|00005430| 61 74 65 72 69 61 6c 5f | 73 68 69 6e 65 29 3b 0a |aterial_|shine);.|
|00005440| 73 65 74 5f 73 68 61 72 | 70 28 6d 61 74 65 72 69 |set_shar|p(materi|
|00005450| 61 6c 5f 73 68 61 72 70 | 29 3b 0a 62 75 69 6c 64 |al_sharp|);.build|
|00005460| 43 53 70 61 63 65 41 28 | 5b 30 5d 29 3b 0a 62 75 |CSpaceA(|[0]);.bu|
|00005470| 69 6c 64 43 53 70 61 63 | 65 42 28 5b 31 5d 29 3b |ildCSpac|eB([1]);|
|00005480| 0a 62 75 69 6c 64 43 53 | 70 61 63 65 43 28 5b 32 |.buildCS|paceC([2|
|00005490| 5d 29 3b 0a 62 75 69 6c | 64 43 53 70 61 63 65 44 |]);.buil|dCSpaceD|
|000054a0| 28 5b 33 5d 29 3b 0a 64 | 61 74 61 20 6e 75 6d 20 |([3]);.d|ata num |
|000054b0| 66 73 69 7a 65 20 3d 20 | 5b 30 2e 39 5d 3b 20 0a |fsize = |[0.9]; .|
|000054c0| 73 74 61 6c 6b 28 29 3b | 0a 64 61 74 61 20 6e 75 |stalk();|.data nu|
|000054d0| 6d 20 70 65 74 61 6c 5f | 66 77 64 20 3d 20 5b 31 |m petal_|fwd = [1|
|000054e0| 39 2e 31 33 37 38 5d 3a | 5b 2d 32 30 5d 3a 5b 32 |9.1378]:|[-20]:[2|
|000054f0| 30 5d 3b 20 0a 66 6f 72 | 77 61 72 64 28 28 70 65 |0]; .for|ward((pe|
|00005500| 74 61 6c 5f 66 77 64 2a | 6f 70 65 6e 29 29 3b 0a |tal_fwd*|open));.|
|00005510| 70 69 74 63 68 28 28 5b | 33 2e 31 34 31 35 39 5d |pitch(([|3.14159]|
|00005520| 2f 5b 32 5d 29 29 3b 0a | 70 65 74 61 6c 28 29 3b |/[2]));.|petal();|
|00005530| 0a 79 61 77 28 28 28 5b | 32 5d 2a 5b 33 2e 31 34 |.yaw((([|2]*[3.14|
|00005540| 31 35 39 5d 29 2f 5b 35 | 5d 29 29 3b 0a 70 65 74 |159])/[5|]));.pet|
|00005550| 61 6c 28 29 3b 0a 79 61 | 77 28 28 28 5b 32 5d 2a |al();.ya|w((([2]*|
|00005560| 5b 33 2e 31 34 31 35 39 | 5d 29 2f 5b 35 5d 29 29 |[3.14159|])/[5]))|
|00005570| 3b 0a 70 65 74 61 6c 28 | 29 3b 0a 79 61 77 28 28 |;.petal(|);.yaw((|
|00005580| 28 5b 32 5d 2a 5b 33 2e | 31 34 31 35 39 5d 29 2f |([2]*[3.|14159])/|
|00005590| 5b 35 5d 29 29 3b 0a 70 | 65 74 61 6c 28 29 3b 0a |[5]));.p|etal();.|
|000055a0| 79 61 77 28 28 28 5b 32 | 5d 2a 5b 33 2e 31 34 31 |yaw((([2|]*[3.141|
|000055b0| 35 39 5d 29 2f 5b 35 5d | 29 29 3b 0a 70 65 74 61 |59])/[5]|));.peta|
|000055c0| 6c 28 29 3b 0a 7d 0a 66 | 75 6e 63 20 76 6f 69 64 |l();.}.f|unc void|
|000055d0| 20 73 74 61 6c 6b 28 29 | 20 7b 0a 64 61 74 61 20 | stalk()| {.data |
|000055e0| 6e 75 6d 20 73 70 68 65 | 72 65 6e 65 73 73 20 3d |num sphe|reness =|
|000055f0| 20 6f 70 65 6e 3b 20 0a | 64 61 74 61 20 6e 75 6d | open; .|data num|
|00005600| 20 73 68 65 65 74 6e 65 | 73 73 20 3d 20 28 5b 31 | sheetne|ss = ([1|
|00005610| 5d 2d 73 70 68 65 72 65 | 6e 65 73 73 29 3b 20 0a |]-sphere|ness); .|
|00005620| 64 61 74 61 20 69 6e 74 | 20 6d 61 78 72 69 6e 67 |data int| maxring|
|00005630| 73 20 3d 20 5b 38 5d 3b | 20 0a 64 61 74 61 20 6e |s = [8];| .data n|
|00005640| 75 6d 20 61 6c 70 68 61 | 20 3d 20 5b 30 5d 3b 20 |um alpha| = [0]; |
|00005650| 0a 64 61 74 61 20 6e 75 | 6d 20 64 65 6c 74 61 61 |.data nu|m deltaa|
|00005660| 6c 70 68 61 20 3d 20 28 | 5b 33 2e 31 34 31 35 39 |lpha = (|[3.14159|
|00005670| 5d 2f 69 74 6f 6e 28 6d | 61 78 72 69 6e 67 73 29 |]/iton(m|axrings)|
|00005680| 29 3b 20 0a 73 65 74 5f | 74 65 78 74 75 72 65 28 |); .set_|texture(|
|00005690| 5b 30 5d 29 3b 0a 64 61 | 74 61 20 6e 75 6d 20 73 |[0]);.da|ta num s|
|000056a0| 70 68 65 72 65 5f 65 78 | 70 61 6e 64 65 64 20 3d |phere_ex|panded =|
|000056b0| 20 5b 31 35 5d 3a 5b 2d | 31 30 5d 3a 5b 31 35 5d | [15]:[-|10]:[15]|
|000056c0| 3b 20 0a 69 66 28 6c 65 | 73 73 28 73 70 68 65 72 |; .if(le|ss(spher|
|000056d0| 65 5f 65 78 70 61 6e 64 | 65 64 2c 5b 31 5d 29 29 |e_expand|ed,[1]))|
|000056e0| 20 7b 0a 73 70 68 65 72 | 65 5f 65 78 70 61 6e 64 | {.spher|e_expand|
|000056f0| 65 64 20 3d 20 5b 31 5d | 3b 0a 7d 20 0a 66 6f 72 |ed = [1]|;.} .for|
|00005700| 28 20 69 6e 74 20 72 69 | 6e 67 20 3d 20 5b 30 5d |( int ri|ng = [0]|
|00005710| 3b 20 69 6c 65 73 73 28 | 72 69 6e 67 2c 6d 61 78 |; iless(|ring,max|
|00005720| 72 69 6e 67 73 29 3b 20 | 28 72 69 6e 67 2b 5b 31 |rings); |(ring+[1|
|00005730| 5d 29 20 29 20 7b 0a 64 | 61 74 61 20 6e 75 6d 20 |]) ) {.d|ata num |
|00005740| 6c 6f 63 75 73 20 3d 20 | 28 69 74 6f 6e 28 72 69 |locus = |(iton(ri|
|00005750| 6e 67 29 2f 69 74 6f 6e | 28 6d 61 78 72 69 6e 67 |ng)/iton|(maxring|
|00005760| 73 29 29 3b 20 0a 73 65 | 74 5f 63 6f 6c 6f 75 72 |s)); .se|t_colour|
|00005770| 28 63 73 70 61 63 65 28 | 5b 32 5d 2c 6c 6f 63 75 |(cspace(|[2],locu|
|00005780| 73 29 29 3b 0a 64 61 74 | 61 20 6e 75 6d 20 73 70 |s));.dat|a num sp|
|00005790| 68 65 72 65 7a 20 3d 20 | 28 63 6f 73 28 61 6c 70 |herez = |(cos(alp|
|000057a0| 68 61 29 2a 73 70 68 65 | 72 65 5f 65 78 70 61 6e |ha)*sphe|re_expan|
|000057b0| 64 65 64 29 3b 20 0a 64 | 61 74 61 20 6e 75 6d 20 |ded); .d|ata num |
|000057c0| 73 70 68 65 72 65 72 61 | 64 69 75 73 20 3d 20 28 |spherera|dius = (|
|000057d0| 73 69 6e 28 61 6c 70 68 | 61 29 2a 73 70 68 65 72 |sin(alph|a)*spher|
|000057e0| 65 5f 65 78 70 61 6e 64 | 65 64 29 3b 20 0a 64 61 |e_expand|ed); .da|
|000057f0| 74 61 20 6e 75 6d 20 63 | 69 72 63 75 6d 20 3d 20 |ta num c|ircum = |
|00005800| 28 28 5b 32 5d 2a 5b 33 | 2e 31 34 31 35 39 5d 29 |(([2]*[3|.14159])|
|00005810| 2a 69 74 6f 6e 28 72 69 | 6e 67 29 29 3b 20 0a 64 |*iton(ri|ng)); .d|
|00005820| 61 74 61 20 69 6e 74 20 | 73 65 67 73 20 3d 20 6e |ata int |segs = n|
|00005830| 74 6f 69 28 63 69 72 63 | 75 6d 29 3b 20 0a 64 61 |toi(circ|um); .da|
|00005840| 74 61 20 6e 75 6d 20 64 | 65 6c 74 61 74 68 65 74 |ta num d|eltathet|
|00005850| 61 20 3d 20 28 28 5b 32 | 5d 2a 5b 33 2e 31 34 31 |a = (([2|]*[3.141|
|00005860| 35 39 5d 29 2f 63 69 72 | 63 75 6d 29 3b 20 0a 64 |59])/cir|cum); .d|
|00005870| 61 74 61 20 6e 75 6d 20 | 74 68 65 74 61 20 3d 20 |ata num |theta = |
|00005880| 5b 30 5d 3b 20 0a 66 6f | 72 28 20 69 6e 74 20 73 |[0]; .fo|r( int s|
|00005890| 65 67 20 3d 20 5b 30 5d | 3b 20 69 6c 65 73 73 28 |eg = [0]|; iless(|
|000058a0| 73 65 67 2c 73 65 67 73 | 29 3b 20 28 73 65 67 2b |seg,segs|); (seg+|
|000058b0| 5b 31 5d 29 20 29 20 7b | 0a 64 61 74 61 20 6e 75 |[1]) ) {|.data nu|
|000058c0| 6d 20 6e 6f 72 6d 78 20 | 3d 20 63 6f 73 28 74 68 |m normx |= cos(th|
|000058d0| 65 74 61 29 3b 20 0a 64 | 61 74 61 20 6e 75 6d 20 |eta); .d|ata num |
|000058e0| 6e 6f 72 6d 79 20 3d 20 | 73 69 6e 28 74 68 65 74 |normy = |sin(thet|
|000058f0| 61 29 3b 20 0a 64 61 74 | 61 20 6e 75 6d 20 73 68 |a); .dat|a num sh|
|00005900| 65 65 74 72 61 64 69 75 | 73 20 3d 20 69 74 6f 6e |eetradiu|s = iton|
|00005910| 28 72 69 6e 67 29 3b 20 | 0a 64 61 74 61 20 6e 75 |(ring); |.data nu|
|00005920| 6d 20 74 6f 74 61 6c 72 | 61 64 69 75 73 20 3d 20 |m totalr|adius = |
|00005930| 28 28 73 68 65 65 74 6e | 65 73 73 2a 73 68 65 65 |((sheetn|ess*shee|
|00005940| 74 72 61 64 69 75 73 29 | 2b 28 73 70 68 65 72 65 |tradius)|+(sphere|
|00005950| 6e 65 73 73 2a 73 70 68 | 65 72 65 72 61 64 69 75 |ness*sph|ereradiu|
|00005960| 73 29 29 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 78 |s)); .da|ta num x|
|00005970| 20 3d 20 28 74 6f 74 61 | 6c 72 61 64 69 75 73 2a | = (tota|lradius*|
|00005980| 6e 6f 72 6d 78 29 3b 20 | 0a 64 61 74 61 20 6e 75 |normx); |.data nu|
|00005990| 6d 20 79 20 3d 20 28 74 | 6f 74 61 6c 72 61 64 69 |m y = (t|otalradi|
|000059a0| 75 73 2a 6e 6f 72 6d 79 | 29 3b 20 0a 64 61 74 61 |us*normy|); .data|
|000059b0| 20 6e 75 6d 20 7a 20 3d | 20 28 73 70 68 65 72 65 | num z =| (sphere|
|000059c0| 6e 65 73 73 2a 73 70 68 | 65 72 65 7a 29 3b 20 0a |ness*sph|erez); .|
|000059d0| 70 75 73 68 28 29 3b 0a | 64 61 74 61 20 6e 75 6d |push();.|data num|
|000059e0| 20 73 70 68 65 72 65 73 | 69 7a 65 20 3d 20 5b 31 | spheres|ize = [1|
|000059f0| 5d 3a 5b 30 2e 31 5d 3a | 5b 31 5d 3b 20 0a 65 67 |]:[0.1]:|[1]; .eg|
|00005a00| 67 5f 75 73 63 61 6c 65 | 28 73 70 68 65 72 65 73 |g_uscale|(spheres|
|00005a10| 69 7a 65 29 3b 0a 6d 6f | 76 65 28 76 33 6d 61 6b |ize);.mo|ve(v3mak|
|00005a20| 65 28 78 2c 79 2c 7a 29 | 29 3b 0a 73 65 74 5f 70 |e(x,y,z)|);.set_p|
|00005a30| 72 69 6d 28 5b 33 5d 29 | 3b 0a 6c 61 79 28 29 3b |rim([3])|;.lay();|
|00005a40| 0a 70 6f 70 28 29 3b 0a | 74 68 65 74 61 20 3d 20 |.pop();.|theta = |
|00005a50| 28 74 68 65 74 61 2b 64 | 65 6c 74 61 74 68 65 74 |(theta+d|eltathet|
|00005a60| 61 29 3b 0a 7d 20 0a 61 | 6c 70 68 61 20 3d 20 28 |a);.} .a|lpha = (|
|00005a70| 61 6c 70 68 61 2b 64 65 | 6c 74 61 61 6c 70 68 61 |alpha+de|ltaalpha|
|00005a80| 29 3b 0a 7d 20 0a 7d 0a | 66 75 6e 63 20 76 6f 69 |);.} .}.|func voi|
|00005a90| 64 20 70 65 74 61 6c 28 | 29 20 7b 0a 70 75 73 68 |d petal(|) {.push|
|00005aa0| 28 29 3b 0a 66 6f 72 77 | 61 72 64 28 5b 32 2e 35 |();.forw|ard([2.5|
|00005ab0| 5d 29 3b 0a 70 69 74 63 | 68 28 28 2d 5b 33 2e 31 |]);.pitc|h((-[3.1|
|00005ac0| 34 31 35 39 5d 2f 5b 35 | 5d 29 29 3b 0a 79 61 77 |4159]/[5|]));.yaw|
|00005ad0| 28 28 2d 5b 33 2e 31 34 | 31 35 39 5d 2f 5b 34 5d |((-[3.14|159]/[4]|
|00005ae0| 29 29 3b 0a 72 6f 6c 6c | 28 28 2d 5b 33 2e 31 34 |));.roll|((-[3.14|
|00005af0| 31 35 39 5d 2f 5b 36 5d | 29 29 3b 0a 73 65 74 5f |159]/[6]|));.set_|
|00005b00| 70 72 69 6d 28 5b 33 5d | 29 3b 0a 64 61 74 61 20 |prim([3]|);.data |
|00005b10| 69 6e 74 20 73 65 67 73 | 20 3d 20 5b 33 30 5d 3b |int segs| = [30];|
|00005b20| 20 0a 73 65 74 5f 74 65 | 78 74 75 72 65 28 5b 31 | .set_te|xture([1|
|00005b30| 5d 29 3b 0a 66 6f 72 28 | 20 69 6e 74 20 69 20 3d |]);.for(| int i =|
|00005b40| 20 5b 31 5d 3b 20 69 6c | 65 73 73 28 69 2c 73 65 | [1]; il|ess(i,se|
|00005b50| 67 73 29 3b 20 28 69 2b | 5b 31 5d 29 20 29 20 7b |gs); (i+|[1]) ) {|
|00005b60| 0a 64 61 74 61 20 6e 75 | 6d 20 61 6d 70 6c 69 74 |.data nu|m amplit|
|00005b70| 75 64 65 20 3d 20 73 69 | 6e 28 28 28 5b 33 2e 31 |ude = si|n((([3.1|
|00005b80| 34 31 35 39 5d 2a 69 74 | 6f 6e 28 69 29 29 2f 69 |4159]*it|on(i))/i|
|00005b90| 74 6f 6e 28 73 65 67 73 | 29 29 29 3b 20 0a 73 65 |ton(segs|))); .se|
|00005ba0| 74 5f 63 6f 6c 6f 75 72 | 28 63 73 70 61 63 65 28 |t_colour|(cspace(|
|00005bb0| 5b 31 5d 2c 61 6d 70 6c | 69 74 75 64 65 29 29 3b |[1],ampl|itude));|
|00005bc0| 0a 79 61 77 28 28 5b 33 | 2e 31 34 31 35 39 5d 2f |.yaw(([3|.14159]/|
|00005bd0| 69 74 6f 6e 28 73 65 67 | 73 29 29 29 3b 0a 70 75 |iton(seg|s)));.pu|
|00005be0| 73 68 28 29 3b 0a 66 6f | 72 77 61 72 64 28 5b 30 |sh();.fo|rward([0|
|00005bf0| 2e 31 5d 29 3b 0a 64 61 | 74 61 20 6e 75 6d 20 66 |.1]);.da|ta num f|
|00005c00| 6c 65 78 20 3d 20 5b 30 | 2e 30 36 37 32 38 33 32 |lex = [0|.0672832|
|00005c10| 5d 3a 5b 2d 32 2e 35 5d | 3a 5b 32 2e 35 5d 3b 20 |]:[-2.5]|:[2.5]; |
|00005c20| 0a 65 67 67 5f 73 63 61 | 6c 65 28 76 33 6d 61 6b |.egg_sca|le(v3mak|
|00005c30| 65 28 6f 70 65 6e 2c 6f | 70 65 6e 2c 28 28 6f 70 |e(open,o|pen,((op|
|00005c40| 65 6e 2a 5b 36 5d 29 2a | 28 61 6d 70 6c 69 74 75 |en*[6])*|(amplitu|
|00005c50| 64 65 2b 5b 31 5d 29 29 | 29 29 3b 0a 70 69 74 63 |de+[1]))|));.pitc|
|00005c60| 68 28 28 28 28 5b 33 2e | 31 34 31 35 39 5d 2f 5b |h(((([3.|14159]/[|
|00005c70| 32 5d 29 2a 61 6d 70 6c | 69 74 75 64 65 29 2a 66 |2])*ampl|itude)*f|
|00005c80| 6c 65 78 29 29 3b 0a 6c | 61 79 28 29 3b 0a 70 6f |lex));.l|ay();.po|
|00005c90| 70 28 29 3b 0a 79 61 77 | 28 28 5b 33 2e 31 34 31 |p();.yaw|(([3.141|
|00005ca0| 35 39 5d 2f 5b 32 5d 29 | 29 3b 0a 66 6f 72 77 61 |59]/[2])|);.forwa|
|00005cb0| 72 64 28 28 5b 30 2e 34 | 5d 2a 6f 70 65 6e 29 29 |rd(([0.4|]*open))|
|00005cc0| 3b 0a 79 61 77 28 28 2d | 5b 33 2e 31 34 31 35 39 |;.yaw((-|[3.14159|
|00005cd0| 5d 2f 5b 32 5d 29 29 3b | 0a 7d 20 0a 70 6f 70 28 |]/[2]));|.} .pop(|
|00005ce0| 29 3b 0a 7d 0a 66 75 6e | 63 20 76 6f 69 64 20 62 |);.}.fun|c void b|
|00005cf0| 75 69 6c 64 43 53 70 61 | 63 65 41 28 20 69 6e 74 |uildCSpa|ceA( int|
|00005d00| 20 69 6e 64 65 78 20 29 | 20 7b 0a 64 61 74 61 20 | index )| {.data |
|00005d10| 63 6f 6c 6f 75 72 20 63 | 30 20 3d 20 5b 3c 30 2e |colour c|0 = [<0.|
|00005d20| 32 36 33 34 33 34 2c 30 | 2e 37 35 37 32 37 2c 30 |263434,0|.75727,0|
|00005d30| 2e 37 39 31 37 35 37 2c | 30 3e 5d 3a 5b 3c 30 2c |.791757,|0>]:[<0,|
|00005d40| 30 2e 34 2c 30 2c 30 3e | 5d 3a 5b 3c 31 2c 31 2c |0.4,0,0>|]:[<1,1,|
|00005d50| 31 2c 30 3e 5d 3b 20 0a | 64 61 74 61 20 63 6f 6c |1,0>]; .|data col|
|00005d60| 6f 75 72 20 63 31 20 3d | 20 5b 3c 30 2e 32 30 32 |our c1 =| [<0.202|
|00005d70| 37 34 31 2c 30 2e 36 35 | 33 39 34 35 2c 30 2e 34 |741,0.65|3945,0.4|
|00005d80| 31 31 36 39 33 2c 30 3e | 5d 3a 5b 3c 30 2c 30 2e |11693,0>|]:[<0,0.|
|00005d90| 34 2c 30 2c 30 3e 5d 3a | 5b 3c 31 2c 31 2c 31 2c |4,0,0>]:|[<1,1,1,|
|00005da0| 30 3e 5d 3b 20 0a 64 61 | 74 61 20 63 6f 6c 6f 75 |0>]; .da|ta colou|
|00005db0| 72 20 63 32 20 3d 20 5b | 3c 30 2e 38 32 36 33 31 |r c2 = [|<0.82631|
|00005dc0| 33 2c 30 2e 34 30 35 37 | 39 37 2c 30 2e 33 38 33 |3,0.4057|97,0.383|
|00005dd0| 32 33 34 2c 30 3e 5d 3a | 5b 3c 30 2c 30 2e 34 2c |234,0>]:|[<0,0.4,|
|00005de0| 30 2c 30 3e 5d 3a 5b 3c | 31 2c 31 2c 31 2c 30 3e |0,0>]:[<|1,1,1,0>|
|00005df0| 5d 3b 20 0a 64 61 74 61 | 20 63 6f 6c 6f 75 72 20 |]; .data| colour |
|00005e00| 63 33 20 3d 20 5b 3c 30 | 2e 31 33 33 32 36 32 2c |c3 = [<0|.133262,|
|00005e10| 30 2e 35 35 31 33 32 2c | 30 2e 36 38 37 33 35 33 |0.55132,|0.687353|
|00005e20| 2c 30 3e 5d 3a 5b 3c 30 | 2c 30 2e 34 2c 30 2c 30 |,0>]:[<0|,0.4,0,0|
|00005e30| 3e 5d 3a 5b 3c 31 2c 31 | 2c 31 2c 30 3e 5d 3b 20 |>]:[<1,1|,1,0>]; |
|00005e40| 0a 64 61 74 61 20 6e 75 | 6d 20 64 65 6c 74 61 31 |.data nu|m delta1|
|00005e50| 20 3d 20 5b 30 2e 37 34 | 39 32 31 31 5d 3a 5b 30 | = [0.74|9211]:[0|
|00005e60| 2e 30 31 5d 3a 5b 31 5d | 3b 20 0a 64 61 74 61 20 |.01]:[1]|; .data |
|00005e70| 6e 75 6d 20 64 65 6c 74 | 61 32 20 3d 20 5b 30 2e |num delt|a2 = [0.|
|00005e80| 31 35 34 37 38 35 5d 3a | 5b 30 2e 30 31 5d 3a 5b |154785]:|[0.01]:[|
|00005e90| 31 5d 3b 20 0a 64 61 74 | 61 20 6e 75 6d 20 64 65 |1]; .dat|a num de|
|00005ea0| 6c 74 61 33 20 3d 20 5b | 30 2e 33 31 34 30 37 31 |lta3 = [|0.314071|
|00005eb0| 5d 3a 5b 30 2e 30 31 5d | 3a 5b 31 5d 3b 20 0a 69 |]:[0.01]|:[1]; .i|
|00005ec0| 6e 69 74 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |nit_cspa|ce(index|
|00005ed0| 2c 63 30 29 3b 0a 65 78 | 74 65 6e 64 5f 63 73 70 |,c0);.ex|tend_csp|
|00005ee0| 61 63 65 28 69 6e 64 65 | 78 2c 64 65 6c 74 61 31 |ace(inde|x,delta1|
|00005ef0| 2c 63 31 29 3b 0a 65 78 | 74 65 6e 64 5f 63 73 70 |,c1);.ex|tend_csp|
|00005f00| 61 63 65 28 69 6e 64 65 | 78 2c 64 65 6c 74 61 32 |ace(inde|x,delta2|
|00005f10| 2c 63 32 29 3b 0a 65 78 | 74 65 6e 64 5f 63 73 70 |,c2);.ex|tend_csp|
|00005f20| 61 63 65 28 69 6e 64 65 | 78 2c 64 65 6c 74 61 33 |ace(inde|x,delta3|
|00005f30| 2c 63 33 29 3b 0a 7d 0a | 66 75 6e 63 20 76 6f 69 |,c3);.}.|func voi|
|00005f40| 64 20 62 75 69 6c 64 43 | 53 70 61 63 65 42 28 20 |d buildC|SpaceB( |
|00005f50| 69 6e 74 20 69 6e 64 65 | 78 20 29 20 7b 0a 64 61 |int inde|x ) {.da|
|00005f60| 74 61 20 63 6f 6c 6f 75 | 72 20 63 30 20 3d 20 5b |ta colou|r c0 = [|
|00005f70| 3c 30 2e 36 31 36 38 33 | 32 2c 30 2e 34 34 35 35 |<0.61683|2,0.4455|
|00005f80| 36 35 2c 30 2e 35 38 34 | 38 35 39 2c 30 3e 5d 3a |65,0.584|859,0>]:|
|00005f90| 5b 3c 30 2c 30 2e 34 2c | 30 2c 30 3e 5d 3a 5b 3c |[<0,0.4,|0,0>]:[<|
|00005fa0| 31 2c 31 2c 31 2c 30 3e | 5d 3b 20 0a 64 61 74 61 |1,1,1,0>|]; .data|
|00005fb0| 20 63 6f 6c 6f 75 72 20 | 63 31 20 3d 20 5b 3c 30 | colour |c1 = [<0|
|00005fc0| 2e 39 38 39 32 30 36 2c | 30 2e 39 31 31 35 38 32 |.989206,|0.911582|
|00005fd0| 2c 30 2e 35 38 34 38 31 | 38 2c 30 3e 5d 3a 5b 3c |,0.58481|8,0>]:[<|
|00005fe0| 30 2c 30 2e 34 2c 30 2c | 30 3e 5d 3a 5b 3c 31 2c |0,0.4,0,|0>]:[<1,|
|00005ff0| 31 2c 31 2c 30 3e 5d 3b | 20 0a 64 61 74 61 20 63 |1,1,0>];| .data c|
|00006000| 6f 6c 6f 75 72 20 63 32 | 20 3d 20 5b 3c 30 2e 32 |olour c2| = [<0.2|
|00006010| 34 39 39 30 33 2c 30 2e | 39 32 39 30 31 38 2c 30 |49903,0.|929018,0|
|00006020| 2e 36 31 33 38 38 31 2c | 30 3e 5d 3a 5b 3c 30 2c |.613881,|0>]:[<0,|
|00006030| 30 2e 34 2c 30 2c 30 3e | 5d 3a 5b 3c 31 2c 31 2c |0.4,0,0>|]:[<1,1,|
|00006040| 31 2c 30 3e 5d 3b 20 0a | 64 61 74 61 20 63 6f 6c |1,0>]; .|data col|
|00006050| 6f 75 72 20 63 33 20 3d | 20 5b 3c 30 2e 35 38 33 |our c3 =| [<0.583|
|00006060| 35 34 34 2c 30 2e 35 36 | 36 37 38 36 2c 30 2e 37 |544,0.56|6786,0.7|
|00006070| 30 35 36 35 37 2c 30 3e | 5d 3a 5b 3c 30 2c 30 2e |05657,0>|]:[<0,0.|
|00006080| 34 2c 30 2c 30 3e 5d 3a | 5b 3c 31 2c 31 2c 31 2c |4,0,0>]:|[<1,1,1,|
|00006090| 30 3e 5d 3b 20 0a 64 61 | 74 61 20 6e 75 6d 20 64 |0>]; .da|ta num d|
|000060a0| 65 6c 74 61 31 20 3d 20 | 5b 30 2e 38 30 31 38 35 |elta1 = |[0.80185|
|000060b0| 39 5d 3a 5b 30 2e 30 31 | 5d 3a 5b 31 5d 3b 20 0a |9]:[0.01|]:[1]; .|
|000060c0| 64 61 74 61 20 6e 75 6d | 20 64 65 6c 74 61 32 20 |data num| delta2 |
|000060d0| 3d 20 5b 30 2e 34 39 31 | 34 31 31 5d 3a 5b 30 2e |= [0.491|411]:[0.|
|000060e0| 30 31 5d 3a 5b 31 5d 3b | 20 0a 64 61 74 61 20 6e |01]:[1];| .data n|
|000060f0| 75 6d 20 64 65 6c 74 61 | 33 20 3d 20 5b 30 2e 31 |um delta|3 = [0.1|
|00006100| 34 35 36 37 31 5d 3a 5b | 30 2e 30 31 5d 3a 5b 31 |45671]:[|0.01]:[1|
|00006110| 5d 3b 20 0a 69 6e 69 74 | 5f 63 73 70 61 63 65 28 |]; .init|_cspace(|
|00006120| 69 6e 64 65 78 2c 63 30 | 29 3b 0a 65 78 74 65 6e |index,c0|);.exten|
|00006130| 64 5f 63 73 70 61 63 65 | 28 69 6e 64 65 78 2c 64 |d_cspace|(index,d|
|00006140| 65 6c 74 61 31 2c 63 31 | 29 3b 0a 65 78 74 65 6e |elta1,c1|);.exten|
|00006150| 64 5f 63 73 70 61 63 65 | 28 69 6e 64 65 78 2c 64 |d_cspace|(index,d|
|00006160| 65 6c 74 61 32 2c 63 32 | 29 3b 0a 65 78 74 65 6e |elta2,c2|);.exten|
|00006170| 64 5f 63 73 70 61 63 65 | 28 69 6e 64 65 78 2c 64 |d_cspace|(index,d|
|00006180| 65 6c 74 61 33 2c 63 33 | 29 3b 0a 7d 0a 66 75 6e |elta3,c3|);.}.fun|
|00006190| 63 20 76 6f 69 64 20 62 | 75 69 6c 64 43 53 70 61 |c void b|uildCSpa|
|000061a0| 63 65 43 28 20 69 6e 74 | 20 69 6e 64 65 78 20 29 |ceC( int| index )|
|000061b0| 20 7b 0a 64 61 74 61 20 | 63 6f 6c 6f 75 72 20 63 | {.data |colour c|
|000061c0| 30 20 3d 20 5b 3c 30 2e | 31 33 36 39 31 35 2c 30 |0 = [<0.|136915,0|
|000061d0| 2e 35 39 31 36 34 33 2c | 30 2e 39 38 32 36 32 2c |.591643,|0.98262,|
|000061e0| 30 3e 5d 3a 5b 3c 30 2c | 30 2e 34 2c 30 2c 30 3e |0>]:[<0,|0.4,0,0>|
|000061f0| 5d 3a 5b 3c 31 2c 31 2c | 31 2c 30 3e 5d 3b 20 0a |]:[<1,1,|1,0>]; .|
|00006200| 64 61 74 61 20 63 6f 6c | 6f 75 72 20 63 31 20 3d |data col|our c1 =|
|00006210| 20 5b 3c 30 2e 32 33 30 | 38 36 32 2c 30 2e 37 36 | [<0.230|862,0.76|
|00006220| 38 34 35 38 2c 30 2e 35 | 38 38 33 31 2c 30 3e 5d |8458,0.5|8831,0>]|
|00006230| 3a 5b 3c 30 2c 30 2e 34 | 2c 30 2c 30 3e 5d 3a 5b |:[<0,0.4|,0,0>]:[|
|00006240| 3c 31 2c 31 2c 31 2c 30 | 3e 5d 3b 20 0a 64 61 74 |<1,1,1,0|>]; .dat|
|00006250| 61 20 63 6f 6c 6f 75 72 | 20 63 32 20 3d 20 5b 3c |a colour| c2 = [<|
|00006260| 30 2e 39 32 36 32 31 34 | 2c 30 2e 39 36 30 38 32 |0.926214|,0.96082|
|00006270| 36 2c 30 2e 32 30 39 37 | 35 35 2c 30 3e 5d 3a 5b |6,0.2097|55,0>]:[|
|00006280| 3c 30 2c 30 2e 34 2c 30 | 2c 30 3e 5d 3a 5b 3c 31 |<0,0.4,0|,0>]:[<1|
|00006290| 2c 31 2c 31 2c 30 3e 5d | 3b 20 0a 64 61 74 61 20 |,1,1,0>]|; .data |
|000062a0| 63 6f 6c 6f 75 72 20 63 | 33 20 3d 20 5b 3c 30 2e |colour c|3 = [<0.|
|000062b0| 35 38 33 33 34 33 2c 30 | 2e 39 30 38 36 39 2c 30 |583343,0|.90869,0|
|000062c0| 2e 36 38 36 35 31 31 2c | 30 3e 5d 3a 5b 3c 30 2c |.686511,|0>]:[<0,|
|000062d0| 30 2e 34 2c 30 2c 30 3e | 5d 3a 5b 3c 31 2c 31 2c |0.4,0,0>|]:[<1,1,|
|000062e0| 31 2c 30 3e 5d 3b 20 0a | 64 61 74 61 20 6e 75 6d |1,0>]; .|data num|
|000062f0| 20 64 65 6c 74 61 31 20 | 3d 20 5b 30 2e 31 37 34 | delta1 |= [0.174|
|00006300| 37 35 34 5d 3a 5b 30 2e | 30 31 5d 3a 5b 31 5d 3b |754]:[0.|01]:[1];|
|00006310| 20 0a 64 61 74 61 20 6e | 75 6d 20 64 65 6c 74 61 | .data n|um delta|
|00006320| 32 20 3d 20 5b 30 2e 35 | 37 32 31 31 35 5d 3a 5b |2 = [0.5|72115]:[|
|00006330| 30 2e 30 31 5d 3a 5b 31 | 5d 3b 20 0a 64 61 74 61 |0.01]:[1|]; .data|
|00006340| 20 6e 75 6d 20 64 65 6c | 74 61 33 20 3d 20 5b 30 | num del|ta3 = [0|
|00006350| 2e 37 31 38 35 39 33 5d | 3a 5b 30 2e 30 31 5d 3a |.718593]|:[0.01]:|
|00006360| 5b 31 5d 3b 20 0a 69 6e | 69 74 5f 63 73 70 61 63 |[1]; .in|it_cspac|
|00006370| 65 28 69 6e 64 65 78 2c | 63 30 29 3b 0a 65 78 74 |e(index,|c0);.ext|
|00006380| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|00006390| 2c 64 65 6c 74 61 31 2c | 63 31 29 3b 0a 65 78 74 |,delta1,|c1);.ext|
|000063a0| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|000063b0| 2c 64 65 6c 74 61 32 2c | 63 32 29 3b 0a 65 78 74 |,delta2,|c2);.ext|
|000063c0| 65 6e 64 5f 63 73 70 61 | 63 65 28 69 6e 64 65 78 |end_cspa|ce(index|
|000063d0| 2c 64 65 6c 74 61 33 2c | 63 33 29 3b 0a 7d 0a 66 |,delta3,|c3);.}.f|
|000063e0| 75 6e 63 20 76 6f 69 64 | 20 62 75 69 6c 64 43 53 |unc void| buildCS|
|000063f0| 70 61 63 65 44 28 20 69 | 6e 74 20 69 6e 64 65 78 |paceD( i|nt index|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.